feat: update CORS and CSRF trusted origins for improved security
This commit is contained in:
parent
ee8239aa1f
commit
4017ceac51
@ -15,14 +15,17 @@ DEBUG = os.getenv('DEBUG', 'False').lower() == 'true'
|
|||||||
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', '*').split(',')
|
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', '*').split(',')
|
||||||
|
|
||||||
CORS_ALLOWED_ORIGINS = [
|
CORS_ALLOWED_ORIGINS = [
|
||||||
'https://attunehearttherapy.com'
|
'https://attunehearttherapy.com',
|
||||||
|
'https://www.attunehearttherapy.com',
|
||||||
|
'https://api.attunehearttherapy.com',
|
||||||
]
|
]
|
||||||
|
|
||||||
CORS_ALLOW_CREDENTIALS = True
|
CORS_ALLOW_CREDENTIALS = True
|
||||||
|
|
||||||
CSRF_TRUSTED_ORIGINS = [
|
CSRF_TRUSTED_ORIGINS = [
|
||||||
'https://api.attunehearttherapy.com',
|
'https://api.attunehearttherapy.com',
|
||||||
'https://attunehearttherapy.com'
|
'https://attunehearttherapy.com',
|
||||||
|
'https://www.attunehearttherapy.com',
|
||||||
]
|
]
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user