許可するメソッドを追加

This commit is contained in:
斎藤 快斗 2023-05-17 10:50:47 +09:00
parent 1ceab68b42
commit de2b2227e2

View File

@ -18,7 +18,7 @@ async function bootstrap() {
//XXX 特定のオリジンからのリクエストは許可する
app.enableCors({
origin: 'http://localhost:8180',
methods: 'GET,PUT,POST,DELETE',
methods: 'GET,PUT,POST,DELETE,OPTION',
allowedHeaders: 'Content-Type',
});
app.use(