Nginx配置跨域請求 Access-Control-Allow-Origin *

當出現403跨域錯誤的時候 No 'Access-Control-Allow-Origin' header is present on the requested resource,須要給Nginx服務器配置響應的header參數:html 1、 解決方案 只須要在Nginx的配置文件中配置如下參數:web location / { add_header Access-Control-
相關文章
相關標籤/搜索