chore: cfc 服务接口允许Access-Control-Allow-Credentials (#5928)

This commit is contained in:
吴多益 2022-12-14 15:34:43 +08:00 committed by GitHub
parent b9f11fe7ae
commit bfb81a455e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,6 @@ function createHeaders(headers) {
'Content-Type': 'Application/json',
'Access-Control-Allow-Headers': 'x-requested-with,content-type',
'Access-Control-Allow-Methods': 'GET,POST,PUT,DELETE,OPTIONS,HEAD',
'Access-Control-Allow-Credentials': 'true',
'Access-Control-Allow-Origin': referer ? `${referer}` : '*'
};
}