-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
notebook
5.7.6 breaks pywwt
#191
Comments
pkgw
added a commit
to pkgw/pywwt
that referenced
this issue
Mar 28, 2019
Version 5.7.6 of the Jupyter notebook module adds a new security feature related to the HTTP content types (jupyter/notebook#4467 (comment)). It breaks pywwt because pywwt has not been returning valid MIME types (AKA content types) from its internal Jupyter server. From looking at the main `notebook` implementation, it seems that the correct approach is to use the `mimetypes` module to get the right value to put in the Content-Type header, so let's go ahead and do that. Closes WorldWideTelescope#191.
OK, turns out a pywwt fix is required: say hello to #192. |
pkgw
added a commit
to pkgw/pywwt
that referenced
this issue
Apr 9, 2019
Version 5.7.6 of the Jupyter notebook module adds a new security feature related to the HTTP content types (jupyter/notebook#4467 (comment)). It breaks pywwt because pywwt has not been returning valid MIME types (AKA content types) from its internal Jupyter server. From looking at the main `notebook` implementation, it seems that the correct approach is to use the `mimetypes` module to get the right value to put in the Content-Type header, so let's go ahead and do that. Closes WorldWideTelescope#191.
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As described here, version 5.7.6 of the Jupyter
notebook
module adds a new security feature related to the HTTP content types. This feature breaks pywwt.On previous versions, the internal Jupyter server serves the
wwt_json_api.js
file with the wrong content/MIME type: it bills it astext/html
rather thanapplication/javascript
. This is only a warning, though — in the Firefox JS developer console, you see:The new
X-Content-Type-Options: nosniff
header added innotebook
5.7.6 turns this into a hard error:This breaks programmatic control of the widget, basically.
This problem may be fixed in jupyter/notebook#4468? The PR there bills it as only applying to Windows, but looking at the patch, it might help pywwt out too.
The text was updated successfully, but these errors were encountered: