Closed
Description
Issue Summary
We set X-Frame-Options: sameorigin
on RenderPatternView
responses, but if an exception is raised and DEBUG = True
, the error page response does not have that header set by default.
Steps to Reproduce
- Try to view a pattern that throws an error while rendering (or stick
assert False
in theRenderPatternView.get()
method) - Django debug error page is blocked by browser:
Possible solution
I think the solution here is probably a documentation fix saying you'll need to set X_FRAME_OPTIONS = 'SAMEORIGIN'
in your development settings (unless your project is already being at least that permissive).