Make CORS origin not crash the API
This commit is contained in:
parent
71bef19cce
commit
16210eae6e
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ async function init() {
|
||||||
port: config.server.port,
|
port: config.server.port,
|
||||||
routes: {
|
routes: {
|
||||||
cors: {
|
cors: {
|
||||||
origin: `*`,
|
origin: [`*`],
|
||||||
credentials: true,
|
credentials: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue