mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: cfc 服务接口允许Access-Control-Allow-Credentials (#5928)
This commit is contained in:
parent
b9f11fe7ae
commit
bfb81a455e
@ -63,7 +63,6 @@ function createHeaders(headers) {
|
|||||||
'Content-Type': 'Application/json',
|
'Content-Type': 'Application/json',
|
||||||
'Access-Control-Allow-Headers': 'x-requested-with,content-type',
|
'Access-Control-Allow-Headers': 'x-requested-with,content-type',
|
||||||
'Access-Control-Allow-Methods': 'GET,POST,PUT,DELETE,OPTIONS,HEAD',
|
'Access-Control-Allow-Methods': 'GET,POST,PUT,DELETE,OPTIONS,HEAD',
|
||||||
'Access-Control-Allow-Credentials': 'true',
|
|
||||||
'Access-Control-Allow-Origin': referer ? `${referer}` : '*'
|
'Access-Control-Allow-Origin': referer ? `${referer}` : '*'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user