summaryrefslogtreecommitdiff
path: root/deskutils/py-paperless/files/patch-src-paperless-settings.py
blob: 77e7965c09338c068cc0d2db69ba7f22c3bfb071 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/paperless/settings.py.orig	2019-01-27 13:48:05 UTC
+++ src/paperless/settings.py
@@ -104,7 +104,7 @@ MIDDLEWARE = [
 ]
 
 # We allow CORS from localhost:8080
-CORS_ORIGIN_WHITELIST = tuple(os.getenv("PAPERLESS_CORS_ALLOWED_HOSTS", "localhost:8080").split(","))
+CORS_ORIGIN_WHITELIST = tuple(os.getenv("PAPERLESS_CORS_ALLOWED_HOSTS", "http://localhost:8080").split(","))
 
 # If auth is disabled, we just use our "bypass" authentication middleware
 if bool(os.getenv("PAPERLESS_DISABLE_LOGIN", "false").lower() in ("yes", "y", "1", "t", "true")):