Skip to content

Commit

Permalink
[3.0.x] Fixed #30732 -- Doc'd that SameSite cookies flags can affect …
Browse files Browse the repository at this point in the history
…xframe_options_exempt.

Backport of e8ad265 from master
  • Loading branch information
jezeniel authored and felixxm committed Sep 24, 2019
1 parent 2362f27 commit 9510af3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/ref/clickjacking.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ that tells the middleware not to set the header::
def ok_to_load_in_a_frame(request):
return HttpResponse("This page is safe to load in a frame on any site.")

.. note::

If you want to submit a form or access a session cookie within a frame or
iframe, you may need to modify the :setting:`CSRF_COOKIE_SAMESITE` or
:setting:`SESSION_COOKIE_SAMESITE` settings.

Setting ``X-Frame-Options`` per view
------------------------------------
Expand Down

0 comments on commit 9510af3

Please sign in to comment.