mirror of
https://github.com/MarcZierle/photo-log-backend.git
synced 2025-07-01 09:14:17 +00:00
Update settings.py: CORS trusted origins
This commit is contained in:
parent
bcbd11a69e
commit
ff41fa9bf1
@ -37,6 +37,8 @@ ALLOWED_HOSTS = env('ALLOWED_HOSTS').split(',')
|
||||
CORS_ALLOWED_ORIGINS = [ 'https://' + url for url in env('ALLOWED_HOSTS').split(',')]
|
||||
CORS_ALLOWED_ORIGINS += [ 'http://' + url for url in env('ALLOWED_HOSTS').split(',')]
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = CORS_ALLOWED_ORIGINS
|
||||
|
||||
|
||||
# Application definition
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user