Allow SAMEORIGIN for X-Frame-Options

This was causing issues for iframes used by the Winbox library, it's
now fixed.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-06-10 18:38:05 -07:00
parent 0fd40d5d3d
commit 61e852da60

View File

@@ -126,6 +126,9 @@ STATIC_URL = "static/"
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
# X-Frame-Options header from XFrameOptionsMiddleware
X_FRAME_OPTIONS = "SAMEORIGIN"
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
# Media root - where media files are stored on the disk