Skip to content

Added option to disable CORS#8

Open
StaelensRobin wants to merge 1 commit intoagrostar:masterfrom
StaelensRobin:feature/disable-cors
Open

Added option to disable CORS#8
StaelensRobin wants to merge 1 commit intoagrostar:masterfrom
StaelensRobin:feature/disable-cors

Conversation

@StaelensRobin
Copy link

Hi,

We started experimenting with this project to get a quick REST API on our Mongo database.
For this the project is a perfect fit for us!

We ran into some issue with CORS however since this API runs on a different port than our frontend.
So I added an option to disable the CORS on the server. By default the CORS will stay disabled but when you set DISABLE_CORS environment variable to "true" CORS will be disabled.

If anything is wrong be sure to let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant