Recent Chrome instability with Jira, MIME incorrect on built-in javascripts


I have a serious problem with Jira/Chrome compatibility in our company. It all started about 1-2 weeks ago. Chrome seems to be denying to execute various javascripts and ajax in the jira, therefore most menus, popup windows (like issue creation or work logging) simply won't work. Hard-refresh does the trick of putting things back to the normal state, but it seems to fall apart again just a few clicks later.

One of our developers pointed to the fact that chrome refuses to execute some scripts while displaying jira, because they have incorrect MIME type. Google says that turning off "x-content-type-options:nosniff header" should be a quick workaround, but I'm concerned about weakening the security with such step.

Is there any way to force correct MIME type on jira's javascripts?

2 answers

1 accepted

The problem were related to three things:

*Not fully correct mime type on jira's javascript files

*IIS server passing information about incorrect myme types to browser

*Chrome getting the info and denying to execute the "uncertain type" scripts.

Having all three of these factors at the same time caused this strange behaviour. So removing any of these factors solves the problem:

JIRA: as developers stated: "It is a new thing that they are implementing to browsers to block incorrect mime type, we do agree on that. After a check on our end, we found that the mime type for js files is supposed to be <tt>Content-Type:application/javascript;charset=UTF-8</tt>. Probably that is the reason why it is throwing such error." So correcting mime-types in jira might be achievable, but definitely not immediate solution.

Chrome: changing the browser does the trick. But hey, you can't force people to just change browser :)

IIS: removing header "x-content-type-options:nosniff" from IIS settings solves the problem. However, be aware, that it means weakening the security of your Jira instance. If you have open Jira instance with external users (clients) be sure to avoid this solution.

We removed the nosniff and it works ok, however we use jira only internally in our network.

check here, issue has submitted

and also have a look here

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

212 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you