mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
Fix: revert removed x-frame-options header in non-debug
This commit is contained in:
parent
a8de26f88a
commit
5db511afdf
1 changed files with 3 additions and 0 deletions
|
|
@ -549,6 +549,9 @@ 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 = "SAMEORIGIN"
|
||||
|
||||
# The next 3 settings can also be set using just PAPERLESS_URL
|
||||
CSRF_TRUSTED_ORIGINS = __get_list("PAPERLESS_CSRF_TRUSTED_ORIGINS")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue