Skip to content

Commit

Permalink
add CORS whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
karmaking committed Jan 10, 2025
1 parent 83fca90 commit 4aa032d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/local_settings_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
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': {
Expand Down

0 comments on commit 4aa032d

Please sign in to comment.