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

2021-07-03  本文已影响0人  王小博er
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/;
        }
    }
上一篇下一篇

猜你喜欢

热点阅读