在宝塔面板中,设置字体图片跨域方案如下
nginx代码如下(站点配置文件中):
location / {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE';
add_header 'Access-Control-Allow-Headers' 'Content-Type';
}
在宝塔面板中,设置字体图片跨域方案如下
nginx代码如下(站点配置文件中):
location / {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE';
add_header 'Access-Control-Allow-Headers' 'Content-Type';
}
0评论2025-05-0840
0评论2023-10-111066
0评论2023-10-11937
0评论2023-10-111047