Allow swagger editor to make CORS requests

This commit is contained in:
Jake Howard 2022-10-30 19:00:27 +00:00
parent 91d022c44c
commit e630ef8856
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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