From 2efd278ee9dc0f4e9ec63999865aa138b8fc2f12 Mon Sep 17 00:00:00 2001 From: Florian Gabsteiger Date: Tue, 6 Aug 2019 12:26:14 -0900 Subject: [PATCH] Add http to cors origin whitelist as this is required with new version --- src/paperless/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index ce387be07..ffd5c0d6e 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -107,7 +107,7 @@ def __get_boolean(key, default="NO"): STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' # 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")):