Update: Cors Origin from Docker Environments

This commit is contained in:
Yûki VACHOT 2022-01-14 01:35:50 +01:00
parent a398b49a98
commit 3615ae8d3b
3 changed files with 9 additions and 4 deletions

View file

@ -21,7 +21,7 @@ class Config(object):
}
SECRET_KEY = os.environ.get('SECRET_KEY', 'default_secret_key')
ALLOW_ORIGIN = os.environ.get('ALLOW_ORIGIN', '*')
ALLOW_ORIGIN = os.environ.get('ALLOW_ORIGIN', None)
class ProductionConfig(Config):