From e630ef8856efd675884d0ea92a7167360c59bd2b Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 30 Oct 2022 19:00:27 +0000 Subject: [PATCH] Allow swagger editor to make CORS requests --- website/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/settings.py b/website/settings.py index 0e5d94c..4810d58 100644 --- a/website/settings.py +++ b/website/settings.py @@ -212,7 +212,10 @@ WAGTAILSEARCH_BACKENDS = { WAGTAILADMIN_BASE_URL = f"https://{BASE_HOSTNAME}" -CORS_ALLOWED_ORIGINS = [WAGTAILADMIN_BASE_URL] +CORS_ALLOWED_ORIGINS = [ + WAGTAILADMIN_BASE_URL, + "https://editor.swagger.io" +] WAGTAIL_ENABLE_UPDATE_CHECK = False