Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

embed pdfs with object tag

Jonas Winklerf8f100781e26
diff --git a/src/paperless/settings.py b/src/paperless/settings.py
index ad1f73ed6..edd452e1a 100644
--- a/src/paperless/settings.py
+++ b/src/paperless/settings.py
@@ -118,7 +118,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
-# X_FRAME_OPTIONS = 'SAMEORIGIN'
+X_FRAME_OPTIONS = 'SAMEORIGIN'
# We allow CORS from localhost:8080
CORS_ORIGIN_WHITELIST = tuple(os.getenv("PAPERLESS_CORS_ALLOWED_HOSTS", "http://localhost:8080,https://localhost:8080,http://localhost:4200").split(","))