#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 | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
{{{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.
--
Ticket URL: <https://code.djangoproject.com/ticket/30732>
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/050.d17efa130154acc7a0ea38ea5338e9ee%40djangoproject.com.