rinogeek commited on
Commit
cea28fa
·
1 Parent(s): 752f799

Allow CORS and CSRF for local and GitHub Pages frontends

Browse files
Files changed (1) hide show
  1. satcap_project/settings.py +9 -0
satcap_project/settings.py CHANGED
@@ -96,8 +96,17 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
96
 
97
  CORS_ALLOW_ALL_ORIGINS = True # For development
98
 
 
 
 
 
 
 
99
  CSRF_TRUSTED_ORIGINS = [
100
  "https://cosmolabhub-satcap-oceans-docker.hf.space",
 
 
 
101
  ]
102
 
103
  MEDIA_URL = '/media/'
 
96
 
97
  CORS_ALLOW_ALL_ORIGINS = True # For development
98
 
99
+ CORS_ALLOWED_ORIGINS = [
100
+ "http://localhost:5173",
101
+ "http://127.0.0.1:5173",
102
+ "https://marinoatohoun.github.io",
103
+ ]
104
+
105
  CSRF_TRUSTED_ORIGINS = [
106
  "https://cosmolabhub-satcap-oceans-docker.hf.space",
107
+ "http://localhost:5173",
108
+ "http://127.0.0.1:5173",
109
+ "https://marinoatohoun.github.io",
110
  ]
111
 
112
  MEDIA_URL = '/media/'