原文:[Nginx] 解决跨域been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

当需要跨域请求接口会出现 been blocked by CORS policy: No Access Control Allow Origin header is present on the requested resource. 可以在代码里解决 , 也可以直接在nginx里解决 类似GOFLY部署在nginx下的代码 加上header头就可以了 ...

2021-03-01 16:09 0 1402 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM