if ($request_filename ~* xxx.js) { add_header Cache-Control no-cache; # 设置是否允许 cookie 传输 add_header Access-Control-Allow-Credentials true; # 允许请求地址跨域 * 做为通配符 add_header Access-Control-Allow-Origin * always; # 允许跨域的请求方法 add_header Access-Control-Allow-Methods 'GET, POST, PUT, DELETE, OPTIONS'; }
遇到某ng文件需要支持跨域的解决方案
最新推荐文章于 2024-04-26 16:06:24 发布