Skip to content

Commit

Permalink
Merge pull request #48 from ZdruzenieSTROM/trusted_origins
Browse files Browse the repository at this point in the history
Add trusted origins
  • Loading branch information
kovacspe authored May 28, 2024
2 parents 72bdd0a + d9843d3 commit ea50ddf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion submitter/settings/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,18 @@ def read_secret(secret_name: str) -> str:
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['*']
ALLOWED_HOSTS = ['mamut.strom.sk',
'lomihlav.strom.sk', 'localhost']

CSRF_TRUSTED_ORIGINS = ['https://mamut.strom.sk',
'https://www.mamut.strom.sk',
'http://mamut.strom.sk',
'http://www.mamut.strom.sk',
'https://lomihlav.strom.sk',
'https://www.lomihlav.strom.sk',
'http://lomihlav.strom.sk',
'http://www.lomihlav.strom.sk'
]


# Application definition
Expand Down

0 comments on commit ea50ddf

Please sign in to comment.