]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: remove deprecated debug x-frame-options
authorshamoon <4887959+shamoon@users.noreply.github.com>
Tue, 11 Mar 2025 20:39:03 +0000 (13:39 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Thu, 13 Mar 2025 00:02:55 +0000 (17:02 -0700)
docs/development.md
src/paperless/settings.py

index 67b47a35d5de4ad0a315ff824da1ef59389b72b1..07eb27bd69ff4484bebad172809fc34286fbedc3 100644 (file)
@@ -207,7 +207,7 @@ The front end is built using AngularJS. In order to get started, you need Node.j
     restart it.
 
     By default, the development server is available on `http://localhost:4200/` and is configured to access the API at
-    `http://localhost:8000/api/`, which is the default of the backend. If you enabled `DEBUG` on the back end, several security overrides for allowed hosts, CORS and X-Frame-Options are in place so that the front end behaves exactly as in production.
+    `http://localhost:8000/api/`, which is the default of the backend. If you enabled `DEBUG` on the back end, several security overrides for allowed hosts and CORS are in place so that the front end behaves exactly as in production.
 
 ### Testing and code style
 
index 39a1ad83c54c7d44580bc395c0b7da4a0b417a09..a4b27ae28da54584fbd01fd09e9a591e3394c125 100644 (file)
@@ -549,10 +549,6 @@ def _parse_remote_user_settings() -> str:
 
 HTTP_REMOTE_USER_HEADER_NAME = _parse_remote_user_settings()
 
-# X-Frame options for embedded PDF display:
-X_FRAME_OPTIONS = "ANY" if DEBUG else "SAMEORIGIN"
-
-
 # The next 3 settings can also be set using just PAPERLESS_URL
 CSRF_TRUSTED_ORIGINS = __get_list("PAPERLESS_CSRF_TRUSTED_ORIGINS")