From f8f100781e26bde479ac16257f2ec08faf540e32 Mon Sep 17 00:00:00 2001 From: Jonas Winkler Date: Tue, 27 Oct 2020 18:52:57 +0100 Subject: [PATCH] embed pdfs with object tag --- src/paperless/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(","))