#30732: The default SameSite cookie flag breaks xframe_options_exempt
-------------------------------+--------------------------------------
     Reporter:  zerolab        |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  CSRF           |                  Version:  2.2
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Description changed by zerolab:

Old description:

> {{{xframe_options_exempt}}} is broken with the default setting for
> {{{CSRF_COOKIE_SAMESITE}}} and {{{SESSION_COOKIE_SAMESITE}}} as of
> #27863.
>
> Our use case: an embeddable form started returning 403 when submitted
> after upgrading to 2.2
>
> To reproduce:
> - create a simple form
> - show it on a page with a custom view, decorated with
> {{{xframe_options_exempt}}}
> - load the view in an iframe and try to submit.
>
> At the very least,
> https://docs.djangoproject.com/en/2.2/ref/clickjacking/ could do with a
> note about it.

New description:

 {{{xframe_options_exempt}}} is broken with the default setting for
 {{{CSRF_COOKIE_SAMESITE}}} and {{{SESSION_COOKIE_SAMESITE}}} (i.e.
 {{{Lax}}}) as of #27863.

 Our use case: an embeddable form started returning 403 when submitted
 after upgrading to 2.2

 To reproduce:
 - create a simple form
 - show it on a page with a custom view, decorated with
 {{{xframe_options_exempt}}}
 - load the view in an iframe and try to submit.

 At the very least, https://docs.djangoproject.com/en/2.2/ref/clickjacking/
 could do with a note about it.

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30732#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.0ebf570601b404d5b22e7d3e02313af7%40djangoproject.com.

Reply via email to