許可するヘッダーを追加

This commit is contained in:
斎藤 快斗 2023-05-17 11:05:58 +09:00
parent de2b2227e2
commit 58203f39c8

View File

@ -19,7 +19,7 @@ async function bootstrap() {
app.enableCors({
origin: 'http://localhost:8180',
methods: 'GET,PUT,POST,DELETE,OPTION',
allowedHeaders: 'Content-Type',
allowedHeaders: 'Origin,Content-Type,Accept,Authorization',
});
app.use(
helmet({