nickrbclark commented on issue #23295: URL: https://github.com/apache/superset/issues/23295#issuecomment-1593847533
I tried various other CORS kwarg options noted here: https://flask-cors.corydolphin.com/en/latest/api.html but with no luck. The below configuration allows sharding to work, but only if I separately log in to both domains. Otherwise, it results in a 401 (UNAUTHORIZED) on the Post to the second subdomain. ``` # CORS Options ENABLE_CORS = True #False CORS_OPTIONS: Dict[Any, Any] = { #"resources": r'/*', #"methods": ["GET", "HEAD", "POST", "OPTIONS", "PUT", "PATCH", "DELETE"], #"supports_credentials": True, #"send_wildcard": False, "supports_credentials": True, "allow_headers": "*", #["Access-Control-Allow-Origin", "Content-Type", "Authorization"], "expose_headers": "*", "origins": ["https://sub-01.mydomain.com","https://sub-02.mydomain.com"] } SUPERSET_WEBSERVER_DOMAINS = {"sub-01.mydomain.com","sub-02.mydomain.com"} ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org