Closed ridoo closed 11 months ago
You can also just place it explicitly in .env
which is IMHO a bit easier.
The setup keeps it as this:
.env
for environment specific settings settings.py
(which becomes settings_override.py
in the container -- I should rename the file btw) for setup specific settingsI added the option to the settings.py
rather than .env
, as X_FRAME_OPTIONS
should always to be set to sameorigin
.
settings.py
setsX_FRAME_OPIONS=DENY
by default. Upstream "fixes" this by overriding the setting in itssample.env
. However, if not set explicitly, theDENY
option will be set and embedded documents are blocked by the browser to be displayed:Solution:
Add
X_FRAME_OPIONS=SAMEORIGIN
to thesettings_override.py
./cc @gannebamm