Allow swagger editor to make CORS requests
This commit is contained in:
parent
91d022c44c
commit
e630ef8856
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue