fix(cors): ajouter PATCH/PUT/DELETE dans allowMethods
This commit is contained in:
parent
fcd8fe7017
commit
df7ef2cc31
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ app.use(
|
||||||
'http://localhost:5173',
|
'http://localhost:5173',
|
||||||
'http://localhost:5174',
|
'http://localhost:5174',
|
||||||
],
|
],
|
||||||
allowMethods: ['GET', 'POST', 'OPTIONS'],
|
allowMethods: ['GET', 'POST', 'PATCH', 'PUT', 'DELETE', 'OPTIONS'],
|
||||||
allowHeaders: ['Content-Type', 'Authorization', 'X-Api-Version'],
|
allowHeaders: ['Content-Type', 'Authorization', 'X-Api-Version'],
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue