Closed madrinekariuki closed 3 years ago
This is an issue with superset failing to set cookie.
https://supersetmhealth.ddc.moph.go.th/oauth-authorized/opensrp-preview request response error
this set-cookie didn't specify a samesite attribute and was default to samesite=lax and was blocked ....
This is probably happening because we are using different domains.
@lincmba @ukanga The superset samesite
config is set to none - SESSION_COOKIE_SAMESITE = None
We are facing a CORS error
and this is because of the difference in the domain names of the preview web and the production superset. A proper fix would be to change the domain name of the preview superset instance.
Meanwhile the following solutions should be attempted from superset side:
CORS
origin urls defined - didn't workSUPERSET_WEBSERVER_DOMAINS
to match CORS
origin list -didn't workCORS
send_wildcard to True
- didn't workCORS
allow_headers to match CORS
origin list@lincmba I can follow-up with CHAI on the possibility of getting a preview superset subdomain on the same domain as the production superset. Would that be anything with the *.ddc.moph.go.th
domain?
Yes, that will work.
@samkanga Please note, that this will require a subdomain for only the Reveal-Web piece i.e web-preview.ddc.moph.go.th
since Superset is already in place supersetmhealth.ddc.moph.go.th
. The new subdomain is primarily only for Reveal-Web.
@ciremusyoka please note that this is now affecting other browsers. see below screenshot when I tried to access the plans via Mozilla.
This has since been resolved.
This has also been tested on Thailand local instance and plans are showing well.
Thai preview instance
Noted that plans are not showing on the Action reporting page on some browers. This was tested using Chrome and Also Mozilla. On mozilla the plans were visible while on Chrome the plans were not visible and we are getting an error show below.(500 internal server error)