Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

CORS_ENABLE flag inactive due to Debug Mode being turned off #23

Closed
kastentx opened this issue May 16, 2019 · 0 comments · Fixed by #24
Closed

CORS_ENABLE flag inactive due to Debug Mode being turned off #23

kastentx opened this issue May 16, 2019 · 0 comments · Fixed by #24
Labels
bug Something isn't working

Comments

@kastentx
Copy link
Contributor

Previously, the models used to run with Flask Debug mode turned on. This caused some of the server code to execute twice, so I put a second condition in the conditional statement here

if os.getenv('CORS_ENABLE') == 'true' and os.environ.get('WERKZEUG_RUN_MAIN') == 'true':

Now that Debug mode is turned off, the CORS_ENABLE flag will not actually enable cross origin support. I think it might be best to simply remove the second condition.

@kastentx kastentx added the bug Something isn't working label May 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant