Use a config property for CORS headers
This commit is contained in:
parent
9ce0db9327
commit
1b1812f9f5
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ export default async function() {
|
|||
|
||||
io.listen(config.server.port, {
|
||||
cors: {
|
||||
origin: ["http://localhost:3000"],
|
||||
origin: config.server.cors.origins,
|
||||
credentials: true,
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue