許可するメソッドを追加
This commit is contained in:
parent
1ceab68b42
commit
de2b2227e2
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user