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,
|
||||
routes: {
|
||||
cors: {
|
||||
origin: `*`,
|
||||
origin: [`*`],
|
||||
credentials: true,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue