选择允许跨域的网站,选择设置,注意不要直接去修改Nginx配置无效
增加允许跨域访问配置。
add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers Origin,Accept,Authorization,platformId,ut,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type; add_header Access-Control-Allow-Methods GET,POST,OPTIONS; add_header Access-Control-Allow-Credentials true;
本文由网上采集发布,不代表我们立场,转载联系作者并注明出处:https://gycww.com/wenku/txtlist_i206v.html