REST API response blocked due to mime type mismatch in IE9+ (BB-7966)

Andriy Zhdanov avatarAndriy Zhdanov created an issue

I use bitbucket wiki content via JSONP, but most likely because of missing or wrong 'Content-Type' header, response is blocked by IE9 or IE10.

Example error in IE10:

SEC7112: Script from https://api.bitbucket.org/1.0/repositories/azhdanov/jiratimesheet/wiki/Overview?callback=jQuery164015784368472568788_1364322943216&_=1364323072021 was blocked due to mime type mismatch www.jiratimesheet.com

Can be reproduced at http://www.jiratimesheet.com/#/wiki/Overview in IE10

See also relevant Stack Overflow problem: http://stackoverflow.com/questions/5986772/ie9-script-response-blocked-due-to-mime-type-mismatch

Can this be fixed, please?

Comments (9)

  1. Andriy Zhdanov

    Well, I might be able to fix it on my side, by using just '*/*' instead of 'application/javascript, */*' Accept header. Sorry for bothering, feel free to close it.

  2. Gilmore Davidson

    This is also breaking JSONP in Chrome now, and will hit Firefox soon as they will also be adding support for the X-Content-Type-Options: nosniff header.

    As another example, http://atlassian.bitbucket.org/ is now broken in Chrome because it won't execute a script tag pointing to a REST resource that returns the MIME type of application/json

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.