You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
For a fix, I've submitted a PR. Not as clean-looking, but does operate within the expected parameters of whitenoise. You could make an assumption about SecurityMiddleware always being first in the list, but that seems fraught. You have to go out to a new variable because list.index modifies the original list, rather than returning the newly modified list, so the original list(config...) won't work since that created an on-the-fly reference.
From WhiteNoise's documentation, the middleware should be added after the security one:
http://whitenoise.evans.io/en/stable/#quickstart-for-django-apps
Yet django-heroku adds it before the security middleware.
The text was updated successfully, but these errors were encountered: