fix(cors): ajouter localhost:5174 aux origines autorisées
This commit is contained in:
parent
9f5a4a0599
commit
9a119d0421
1 changed files with 5 additions and 1 deletions
|
|
@ -16,7 +16,11 @@ const { upgradeWebSocket, injectWebSocket } = createNodeWebSocket({ app })
|
||||||
app.use(
|
app.use(
|
||||||
'*',
|
'*',
|
||||||
cors({
|
cors({
|
||||||
origin: ['https://expria.app', 'http://localhost:5173'],
|
origin: [
|
||||||
|
'https://expria.app',
|
||||||
|
'http://localhost:5173',
|
||||||
|
'http://localhost:5174',
|
||||||
|
],
|
||||||
allowMethods: ['GET', 'POST', 'OPTIONS'],
|
allowMethods: ['GET', 'POST', 'OPTIONS'],
|
||||||
allowHeaders: ['Content-Type', 'Authorization'],
|
allowHeaders: ['Content-Type', 'Authorization'],
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue