7-4
跨域設定
- 開啟 「網站」==>「設置」==>「配置文件」==>「倒數第三行」當中保存並重載 Nginx 配置即可。
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
- 如: