mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
configuration option for type of PDF viewer fixes #337
This commit is contained in:
parent
769356733a
commit
a008dff368
11 changed files with 165 additions and 91 deletions
|
|
@ -179,6 +179,12 @@ if ENABLE_HTTP_REMOTE_USER:
|
|||
'rest_framework.authentication.RemoteUserAuthentication'
|
||||
)
|
||||
|
||||
# X-Frame options for embedded PDF display:
|
||||
if DEBUG:
|
||||
X_FRAME_OPTIONS = 'ANY'
|
||||
else:
|
||||
X_FRAME_OPTIONS = 'SAMEORIGIN'
|
||||
|
||||
# We allow CORS from localhost:8080
|
||||
CORS_ALLOWED_ORIGINS = tuple(os.getenv("PAPERLESS_CORS_ALLOWED_HOSTS", "http://localhost:8000").split(","))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue