We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f92f81f + 6703f97 commit 596c9b2Copy full SHA for 596c9b2
2 files changed
pyconkr/settings.py
@@ -47,9 +47,12 @@
47
"status",
48
# swagger
49
"drf_spectacular",
50
+ # cors
51
+ "corsheaders",
52
]
53
54
MIDDLEWARE = [
55
+ "corsheaders.middleware.CorsMiddleware",
56
"django.middleware.security.SecurityMiddleware",
57
"django.contrib.sessions.middleware.SessionMiddleware",
58
"django.middleware.common.CommonMiddleware",
@@ -170,3 +173,5 @@
170
173
# available SwaggerUI versions: https://github.com/swagger-api/swagger-ui/releases
171
174
"SWAGGER_UI_DIST": "//unpkg.com/swagger-ui-dist@3.35.1",
172
175
}
176
+
177
+CORS_ALLOW_ALL_ORIGINS = True
requirements.txt
@@ -15,3 +15,4 @@ Pillow==9.4.0
15
django-constance==2.9.1
16
django-picklefield==3.1
17
drf-spectacular==0.25.1
18
+django-cors-headers==3.14.0
0 commit comments