-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insecure Mixed Content #37
Comments
Reading https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin, there are situations when a browser will not send the ORIGIN header:
https://github.com/crosscompute/jupyterlab-crosscompute/blob/master/src/body.tsx#L41 As seen above, the launch state (including the URI) is set after a GET request to I think the environment variable method will be more reliable and we should only use the Origin request header as a fallback. |
The GET request to /launch is triggered when the file browser changes path.
https://github.com/crosscompute/jupyterlab-crosscompute/blob/master/src/index.ts#L41 From talking with @AbdourahamaneIssakaSani, it seems that his browser is sending Referer but not Origin for some reason. Either way, we shouldn't rely on the request headers.
|
@AbdourahamaneIssakaSani is accessing jupyterlab via HTTPS, but this fetch method is querying by HTTP, resulting in an insecure mixed content request block.
He seems to be running the latest versions of chrome and firefox. Could it be possible that a proxy is causing this issue? We have not encountered this issue before and the change from HTTPS to HTTP does not happen if I access the same URL from my machine.
https://github.com/crosscompute/jupyterlab-crosscompute/blob/master/src/body.tsx#L273
https://github.com/crosscompute/jupyterlab-crosscompute/blob/master/jupyterlab_crosscompute/routines.py#L61
Looking at the code, we are relying on the
Origin
request header being correct. It is possible that @AbdourahamaneIssakaSani's machine is incorrectly reporting theOrigin
request header.The text was updated successfully, but these errors were encountered: