mirror of
https://github.com/django/django.git
synced 2025-07-10 20:59:12 +00:00
[2.2.x] Clarified that SECURE_REDIRECT_EXEMPT patterns should not include leading slashes.
Backport of d232fd76a85870daf345fd8f8d617fe7802ae194 from master
This commit is contained in:
parent
323467e286
commit
d4d37d0900
@ -2279,8 +2279,11 @@ available in ``request.META``.)
|
||||
Default: ``[]`` (Empty list)
|
||||
|
||||
If a URL path matches a regular expression in this list, the request will not be
|
||||
redirected to HTTPS. If :setting:`SECURE_SSL_REDIRECT` is ``False``, this
|
||||
setting has no effect.
|
||||
redirected to HTTPS. The
|
||||
:class:`~django.middleware.security.SecurityMiddleware` strips leading slashes
|
||||
from URL paths, so patterns shouldn't include them, e.g.
|
||||
``SECURE_REDIRECT_EXEMPT = [r'^no-ssl/$', …]``. If
|
||||
:setting:`SECURE_SSL_REDIRECT` is ``False``, this setting has no effect.
|
||||
|
||||
.. setting:: SECURE_SSL_HOST
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user