解決同域Nginx ajax 請求跨域的問題

在nginx.conf的根server  location上添加以下配置html location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST,
相關文章
相關標籤/搜索