elevation-of-privilege icon indicating copy to clipboard operation
elevation-of-privilege copied to clipboard

Make CORS origins configurable

Open matthewejones opened this issue 3 years ago • 1 comments

In the latest version of boardgame.io, the permitted origins must be provided. At the moment this is set to the following in gameServer.js.

origins: [
    '*'
]

This would probably be better set up from a config file This will also affect the deployment process

matthewejones avatar Aug 02 '21 09:08 matthewejones

When setting up such a config file, one must not forget to also adapt the docker and heroku deployments.

ChristophNiehoff avatar Aug 02 '21 09:08 ChristophNiehoff