ne radi vite server
This commit is contained in:
@@ -125,6 +125,15 @@ SIMPLE_JWT = {
|
||||
MEDIA_URL = '/media/'
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||
|
||||
|
||||
# 2. CSRF_TRUSTED_ORIGINS
|
||||
# Primjer: https://app.tvojadomena.hr,https://api.tvojadomena.hr
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
origin.strip()
|
||||
for origin in os.getenv('DJANGO_CSRF_TRUSTED_ORIGINS', 'http://127.0.0.1:4321,http://localhost:4321').split(',')
|
||||
if origin.strip()
|
||||
]
|
||||
|
||||
# CORS POSTAVKE - POPRAVLJENI ZAREZI I FORMALNI ORIGINI
|
||||
if DEBUG:
|
||||
CORS_ALLOW_ALL_ORIGINS = True
|
||||
|
||||
Reference in New Issue
Block a user