diff --git a/cvat/settings/base.py b/cvat/settings/base.py index 08ae7e2b4e0..b15466dac79 100644 --- a/cvat/settings/base.py +++ b/cvat/settings/base.py @@ -192,10 +192,11 @@ def generate_ssh_keys(): CORS_ALLOW_CREDENTIALS = True CSRF_TRUSTED_ORIGINS = [UI_HOST] UI_URL = '{}://{}'.format(UI_SCHEME, UI_HOST) +UI_WITHOUT_PORT = UI_URL if len(UI_URL): UI_URL += ':{}'.format(UI_PORT) -CORS_ORIGIN_WHITELIST = [UI_URL] +CORS_ORIGIN_WHITELIST = [UI_URL, UI_WITHOUT_PORT] CORS_REPLACE_HTTPS_REFERER = True STATICFILES_FINDERS = [