Issue collector Js error on chrome


Into Jira I created an issue collector. Then I included it in a confluence page. The issue collector popup shows correctly on IE and FireFox, but on Chrome (version 59.0.3071.115 64bits) I have an error :

Refused to execute script from 'https://<my-Jira-Url>/s/collector-resource-d41d8cd98f00b204e9800998ecf84…ces:ie-imitation-placeholder/jira.webresources:ie-imitation-placeholder.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

and the popup does not appears

Thanks in advance for help...


1 answer

0 votes

Hi Pierre,

The content type on the hosted instance and the on-premise instance is as follows:

Content-Type: text/html;charset=UTF-8

According to an answer in a StackExchange post I found:

" on the raw subdomain is returning Content-Type text/plain; charset=utf-8 as the MIME type that means it will not execute as JS but rather as raw text, below is an example what you would need the server to return in order to render the file..."

We tested with the same version you are on and did not run into the issue when we embedded it into an HTML macro.  If you have not tried that please do and see if you get the same behavior.  

In addition, please see the communities post How do I use a .js attachment on a page?



Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

282 views 0 12
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot