Skip to content

Commit 0faa3b1

Browse files
author
jarodaerts
committed
Try to fix CORS
1 parent 8eeaaf1 commit 0faa3b1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker/pythonpath_dev/superset_config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ class CeleryConfig:
9999

100100
CELERY_CONFIG = CeleryConfig
101101

102+
CORS_OPTIONS = {
103+
"supports_credentials": True,
104+
"allow_headers": ["*"],
105+
"resources": ["*"],
106+
"origins": ["*"]
107+
}
108+
102109
FEATURE_FLAGS = {"ALERT_REPORTS": True, "EMBEDDED_SUPERSET": True}
103110
ALERT_REPORTS_NOTIFICATION_DRY_RUN = True
104111
WEBDRIVER_BASEURL = f"http://superset_app{os.environ.get('SUPERSET_APP_ROOT', '/')}/" # When using docker compose baseurl should be http://superset_nginx{ENV{BASEPATH}}/ # noqa: E501

0 commit comments

Comments
 (0)