Skip to content

Commit

Permalink
Move CorsMiddleware first to prevent losing headers at append slash r…
Browse files Browse the repository at this point in the history
…edirect
  • Loading branch information
Rikuoja committed Nov 7, 2016
1 parent ec88923 commit 9c331c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkedevents/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
)

MIDDLEWARE_CLASSES = (
'corsheaders.middleware.CorsMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'corsheaders.middleware.CorsMiddleware',
'reversion.middleware.RevisionMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
Expand Down

0 comments on commit 9c331c3

Please sign in to comment.