Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请注意 如果您在安装过程中遇到了跨域问题 请参照这个进行修复 #1

Open
Shizoukia opened this issue Feb 19, 2024 · 0 comments

Comments

@Shizoukia
Copy link

注意: 建议前后端使用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;
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant