-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
注意: 建议前后端使用ssl进行通信!(当然你不用也行 密码明文传输喽~)
如果你遇到了浏览器尝试请求遭到了 CORS 错误
请尝试在您的Nginx后端站点配置文件中加入
location / {
add_header 'Access-Control-Allow-Origin' 'https://appeal.potpvp.cc';
add_header 'Access-Control-Allow-Methods' 'POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Content-Type';
add_header 'Access-Control-Allow-Credentials' 'true';
if ($request_method = 'OPTIONS') {
return 204;
}
}
Metadata
Metadata
Assignees
Labels
No labels