Use a config property for CORS headers

This commit is contained in:
Oliver Akins 2022-03-07 22:16:29 -06:00
parent 9ce0db9327
commit 1b1812f9f5
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -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,
}
});