mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #16010 -- Required CSRF_TRUSTED_ORIGINS setting to include the scheme.
This commit is contained in:
committed by
Mariusz Felisiak
parent
9bf5e9418f
commit
dba44a7a7a
@@ -307,6 +307,22 @@ Upstream support for Oracle 12.2 ends in March 2022 and for Oracle 18c it ends
|
||||
in June 2021. Django 3.2 will be supported until April 2024. Django 4.0
|
||||
officially supports Oracle 19c.
|
||||
|
||||
.. _csrf-trusted-origins-changes-4.0:
|
||||
|
||||
``CSRF_TRUSTED_ORIGINS`` changes
|
||||
--------------------------------
|
||||
|
||||
Format change
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
Values in the :setting:`CSRF_TRUSTED_ORIGINS` setting must include the scheme
|
||||
(e.g. ``'http://'`` or ``'https://'``) instead of only the hostname.
|
||||
|
||||
Also, values that started with a dot, must now also include an asterisk before
|
||||
the dot. For example, change ``'.example.com'`` to ``'https://*.example.com'``.
|
||||
|
||||
A system check detects any required changes.
|
||||
|
||||
Miscellaneous
|
||||
-------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user