mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #31840 -- Added support for Cross-Origin Opener Policy header.
Thanks Adam Johnson and Tim Graham for the reviews. Co-authored-by: Tim Graham <timograham@gmail.com>
This commit is contained in:
@@ -229,7 +229,11 @@ Models
|
||||
Requests and Responses
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* ...
|
||||
* The :class:`~django.middleware.security.SecurityMiddleware` now adds the
|
||||
:ref:`Cross-Origin Opener Policy <cross-origin-opener-policy>` header with a
|
||||
value of ``'same-origin'`` to prevent cross-origin popups from sharing the
|
||||
same browsing context. You can prevent this header from being added by
|
||||
setting the :setting:`SECURE_CROSS_ORIGIN_OPENER_POLICY` setting to ``None``.
|
||||
|
||||
Security
|
||||
~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user