原文:[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