美文网首页
2021-07-03 nginx配置静态资源跨域解决

2021-07-03 nginx配置静态资源跨域解决

作者: 王小博er | 来源:发表于2021-07-03 13:42 被阅读0次
server {
        listen  8998;
        add_header Access-Control-Allow-Origin *;
        add_header Access-Control-Allow-Headers X-Requested-With;
        add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
        add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,access_token';
        location /pano {
            alias krpano/vtour/;
        }
    }

相关文章

网友评论

      本文标题:2021-07-03 nginx配置静态资源跨域解决

      本文链接:https://www.haomeiwen.com/subject/mqiuultx.html