File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 3838 'django.contrib.messages' ,
3939 'django.contrib.staticfiles' ,
4040 'linker.apps.LinkerConfig' ,
41- 'rest_framework'
41+ 'rest_framework' ,
42+ 'corsheaders'
4243]
4344
4445MIDDLEWARE = [
4546 'django.middleware.security.SecurityMiddleware' ,
4647 'django.contrib.sessions.middleware.SessionMiddleware' ,
48+ 'corsheaders.middleware.CorsMiddleware' ,
4749 'django.middleware.common.CommonMiddleware' ,
4850 'django.middleware.csrf.CsrfViewMiddleware' ,
4951 'django.contrib.auth.middleware.AuthenticationMiddleware' ,
5052 'django.contrib.messages.middleware.MessageMiddleware' ,
5153 'django.middleware.clickjacking.XFrameOptionsMiddleware' ,
5254]
5355
56+ CORS_ALLOW_CREDENTIALS = True
57+ CORS_ALLOW_ALL_ORIGINS = True
5458# For Production Only
5559REST_FRAMEWORK = {
5660 'DEFAULT_RENDERER_CLASSES' : (
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ asttokens==2.4.1
33colorama == 0.4.6
44decorator == 5.1.1
55Django == 5.0.6
6+ django-cors-headers == 4.4.0
67djangorestframework == 3.15.2
78executing == 2.0.1
89ipython == 8.26.0
You can’t perform that action at this time.
0 commit comments