DataBiosphere / data-explorer

BSD 3-Clause "New" or "Revised" License
11 stars 6 forks source link

Blank page displayed accessing Data Explorer behind zscalar gateway #259

Open mbookman opened 5 years ago

mbookman commented 5 years ago

Have an end-user who is trying to access Data Explorer and only sees a blank page.

His organization uses the Zscalar gateway, which appears to be causing problems. In the Chrome Console, we can see error messages:

Access to XMLHttpRequest at 'https://gateway.zscalar.net/auD?origurl=<DE-URL-to-/api/facets> (redirected from /api/facets' ) from origin '' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request

Error: Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.

wnojopra commented 5 years ago

I'm unsure if its the same issue, but I notice I also get CORS errors on amp-pd-data-explorer and nhs-explorer

Access to resource at 'https://accounts.google.com/o/oauth2/v2/auth?client_id=62308282822-mkdil7m97tl1sjltj22ajpurra4si81n.apps.googleusercontent.com&response_type=code&scope=openid+email&redirect_uri=https://nhs-explorer.appspot.com/_gcp_gatekeeper/authenticate&state=Ci5odHRwczovL25ocy1leHBsb3Jlci5hcHBzcG90LmNvbS9tYW5pZmVzdC5qc29uEjBBSEFhaFM4eGdHRENheXk2cWNaWDd0ZUZHcUxRcmx5QlRnOjE1NDc1OTIxNjczNTM' (redirected from 'https://nhs-explorer.appspot.com/manifest.json') from origin 'https://nhs-explorer.appspot.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

This error doesn't appear on test-data-explorer.