Skip to content

Commit

Permalink
Merge pull request #538 from autrilla/reorder-middleware
Browse files Browse the repository at this point in the history
Apply Dockerflow middleware before security middleware
  • Loading branch information
Adrian Utrilla authored Apr 29, 2019
2 parents 46ca9e8 + fb98bca commit 23610b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildhub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ class Core(Configuration, AWS, CORS, Whitenoise, CSP, Backfill):
]

MIDDLEWARE = [
"dockerflow.django.middleware.DockerflowMiddleware",
"django.middleware.security.SecurityMiddleware",
"corsheaders.middleware.CorsMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"dockerflow.django.middleware.DockerflowMiddleware",
"csp.middleware.CSPMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
"buildhub.middleware.StatsMiddleware",
Expand Down

0 comments on commit 23610b2

Please sign in to comment.