File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 9090# https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
9191INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
9292
93+ CORS_ALLOW_HEADERS = [
94+ "accept" ,
95+ "authorization" ,
96+ "content-type" ,
97+ "user-agent" ,
98+ "x-csrftoken" ,
99+ "x-requested-with" ,
100+ ]
101+
93102CORS_ALLOWED_ORIGINS = [
94103 "http://localhost:3000" ,
95104 "http://sde-lrm.nasa-impact.net" ,
146155# https://docs.djangoproject.com/en/dev/ref/settings/#middleware
147156MIDDLEWARE = [
148157 "django.middleware.security.SecurityMiddleware" ,
158+ "corsheaders.middleware.CorsMiddleware" ,
149159 "django.contrib.sessions.middleware.SessionMiddleware" ,
150160 "django.middleware.locale.LocaleMiddleware" ,
151161 "django.middleware.common.CommonMiddleware" ,
152162 "django.middleware.csrf.CsrfViewMiddleware" ,
153163 "django.contrib.auth.middleware.AuthenticationMiddleware" ,
154164 "django.contrib.messages.middleware.MessageMiddleware" ,
155165 "django.middleware.clickjacking.XFrameOptionsMiddleware" ,
156- "corsheaders.middleware.CorsMiddleware" ,
157166 "allauth.account.middleware.AccountMiddleware" ,
158167]
159168
You can’t perform that action at this time.
0 commit comments