Skip to content

Commit a58780e

Browse files
author
Ben Dickinson
committed
Document setting X-Frame-Options for template errors
1 parent e147e1a commit a58780e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/getting-started.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ TEMPLATES = [
5858
]
5959
```
6060

61+
To see the detailed error pages generated by Django when you have `DEBUG = True` in the pattern library, you'll need to make sure you have `X_FRAME_OPTIONS` set, or your browser will block the response:
62+
63+
```python
64+
if DEBUG:
65+
X_FRAME_OPTIONS = "SAMEORIGIN"
66+
```
67+
68+
Be careful only to change this when `DEBUG = True` unless you know what you're doing, you risk making your app less secure otherwise!
69+
6170
### Pattern library settings
6271

6372
Still in Django settings, set the [`PATTERN_LIBRARY`](./reference/api.md#pattern_library) setting. Here is an example showing the defaults:

0 commit comments

Comments
 (0)