mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-19 00:10:39 +08:00
fix: allow method for cors
This commit is contained in:
@@ -179,7 +179,7 @@ function allowCors(
|
|||||||
// Signed blob URLs redirect to *.usercontent.affine.pro without CORS headers.
|
// Signed blob URLs redirect to *.usercontent.affine.pro without CORS headers.
|
||||||
setHeader(headers, 'Access-Control-Allow-Origin', origin);
|
setHeader(headers, 'Access-Control-Allow-Origin', origin);
|
||||||
setHeader(headers, 'Access-Control-Allow-Credentials', 'true');
|
setHeader(headers, 'Access-Control-Allow-Credentials', 'true');
|
||||||
setHeader(headers, 'Access-Control-Allow-Methods', 'GET, HEAD, OPTIONS');
|
setHeader(headers, 'Access-Control-Allow-Methods', 'GET, HEAD, PUT, OPTIONS');
|
||||||
setHeader(
|
setHeader(
|
||||||
headers,
|
headers,
|
||||||
'Access-Control-Allow-Headers',
|
'Access-Control-Allow-Headers',
|
||||||
|
|||||||
Reference in New Issue
Block a user