Skip to content

Commit 6a11148

Browse files
authored
Merge pull request #49 from golony6449/feature/allow-cors
update: APPEND_SLASH set False
2 parents 596c9b2 + 66811b5 commit 6a11148

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyconkr/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
# SECURITY WARNING: don't run with debug turned on in production!
2626
DEBUG = True
27+
APPEND_SLASH = False
2728

2829
ALLOWED_HOSTS = []
2930

@@ -52,9 +53,9 @@
5253
]
5354

5455
MIDDLEWARE = [
55-
"corsheaders.middleware.CorsMiddleware",
5656
"django.middleware.security.SecurityMiddleware",
5757
"django.contrib.sessions.middleware.SessionMiddleware",
58+
"corsheaders.middleware.CorsMiddleware",
5859
"django.middleware.common.CommonMiddleware",
5960
"django.middleware.csrf.CsrfViewMiddleware",
6061
"django.contrib.auth.middleware.AuthenticationMiddleware",

0 commit comments

Comments
 (0)