Open rfsch opened 2 years ago
Why do you think it's a CORS issue? Looks like it just can't find the file are you sure it's there?
yes. when I paste the link I am providing in remote-bag-url into a browser it gets downloaded. It seems that webviz doesnt like the keycloak intercept/redirect.
The flow is
request file -> redirect to auth proxy keycloak -> serve file
Yea it's just odd because if it was a CORS issue I would think you would get a response like:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://some-url-here. (Reason: additional information here).
Instead you are able to reach the server, it's just not able to find it. You don't see any requests from your server logs on the server holding the bag file?
Hi
I am having issues accessing a remote bag I am hosting from a service in my k8s cluster. I am also using Keycloak gatekeeper which redirects for authentication.
I get a 404 error when webviz tries to access the remote bag:
Status code: 404. at exports.default.open (https://mytest.wviz.com/WorkerDataProvider.worker.js?8f2f9dfb58fc39f77292:2:538323) at async exports.default.open (https://mytest.wviz.com/WorkerDataProvider.worker.js?8f2f9dfb58fc39f77292:2:557592) at async exports.default.initialize (https://mytest.wviz.com/WorkerDataProvider.worker.js?8f2f9dfb58fc39f77292:2:478785) at async exports.default.initialize (https://mytest.wviz.com/WorkerDataProvider.worker.js?8f2f9dfb58fc39f77292:2:439930)
I have tried setting the CORS headers in my k8s ingress controller (nginx.ingress.kubernetes.io) as such:
nginx.ingress.kubernetes.io/configuration-snippet: | if ($http_origin ~ '^https?://mytest(.(wviz|graphql|).com$') { set $allow_origin $http_origin; }
When I issue a curl -H Origin request:
curl -H "Origin: https://mytest.wviz.com" --include --verbose https://mytest.graphql.com/eed331bc5ce232158380be91d907671a14392ed9b5262c9f6d06f5bccaad1593.bag
result of curl request:
} [5 bytes data]
I would really appreciate any hints as I just cannot find what CORS settings I am missing. Is there a way to debug to see the cause ?
Thanks!