mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 11:37:11 +00:00
add CORS whitelist
This commit is contained in:
parent
83fca90418
commit
4aa032d7fa
2
.github/local_settings_container.py
vendored
2
.github/local_settings_container.py
vendored
@ -22,6 +22,8 @@ if os.getenv('ALLOWED_HOSTS'):
|
||||
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS').split(',')
|
||||
if os.getenv('CSRF_TRUSTED_ORIGINS'):
|
||||
CSRF_TRUSTED_ORIGINS = os.getenv('CSRF_TRUSTED_ORIGINS').split(',')
|
||||
if os.getenv('CORS_ORIGIN_WHITELIST'):
|
||||
CORS_ORIGIN_WHITELIST = os.getenv('CORS_ORIGIN_WHITELIST').split(',')
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
DATABASES = {
|
||||
'default': {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user