fix(cors): PUT メソッドを許可(together/members/rename が CORS で弾かれていた)
This commit is contained in:
parent
a05bdb614a
commit
b2fce817bf
|
|
@ -169,7 +169,7 @@ app.use(cors({
|
||||||
if (isAllowedOrigin(origin)) cb(null, true);
|
if (isAllowedOrigin(origin)) cb(null, true);
|
||||||
else cb(new Error('CORS not allowed'));
|
else cb(new Error('CORS not allowed'));
|
||||||
},
|
},
|
||||||
methods: ['GET', 'POST', 'PATCH', 'DELETE', 'OPTIONS'],
|
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
|
||||||
allowedHeaders: ['Content-Type', 'Authorization']
|
allowedHeaders: ['Content-Type', 'Authorization']
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue