From 4fa1779ef3fb8b70c4d0d7c7e04984bef75bdd74 Mon Sep 17 00:00:00 2001 From: Fabian Koller Date: Thu, 14 Jan 2021 21:14:46 +0100 Subject: [PATCH] Only provide legal cors allowed hosts in example Addresses that do not carry a scheme cause errors on database migration. SystemCheckError: System check identified some issues: ERRORS: ?: (corsheaders.E013) Origin 'example.com' in CORS_ALLOWED_ORIGINS is missing scheme or netloc HINT: Add a scheme (e.g. https://) or netloc (e.g. example.com). --- paperless.conf.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paperless.conf.example b/paperless.conf.example index 7e6185765..652a741b0 100644 --- a/paperless.conf.example +++ b/paperless.conf.example @@ -27,7 +27,7 @@ #PAPERLESS_SECRET_KEY=change-me #PAPERLESS_ALLOWED_HOSTS=example.com,www.example.com -#PAPERLESS_CORS_ALLOWED_HOSTS=localhost:8080,example.com,localhost:8000 +#PAPERLESS_CORS_ALLOWED_HOSTS=http://example.com,http://localhost:8000 #PAPERLESS_FORCE_SCRIPT_NAME= #PAPERLESS_STATIC_URL=/static/ #PAPERLESS_AUTO_LOGIN_USERNAME=