mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 13:06:46 +01:00
Extremely basic chat component
This commit is contained in:
parent
bb3336f7bc
commit
c809a65571
11 changed files with 243 additions and 11 deletions
|
|
@ -593,6 +593,10 @@ 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")
|
||||
|
||||
if DEBUG:
|
||||
# Allow access from the angular development server during debugging
|
||||
CSRF_TRUSTED_ORIGINS.append("http://localhost:4200")
|
||||
|
||||
# We allow CORS from localhost:8000
|
||||
CORS_ALLOWED_ORIGINS = __get_list(
|
||||
"PAPERLESS_CORS_ALLOWED_HOSTS",
|
||||
|
|
@ -603,6 +607,8 @@ if DEBUG:
|
|||
# Allow access from the angular development server during debugging
|
||||
CORS_ALLOWED_ORIGINS.append("http://localhost:4200")
|
||||
|
||||
CORS_ALLOW_CREDENTIALS = True
|
||||
|
||||
CORS_EXPOSE_HEADERS = [
|
||||
"Content-Disposition",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue