Skip to content

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

@Shizoukia

Description

@Shizoukia

注意: 建议前后端使用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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions