CamilleB Posted June 1, 2016 Share Posted June 1, 2016 Hello, I am trying to display the data feed of my product on the frontpage with the following script : <script language="javascript" src="feeds/productsinfo.php?pid=1&get=name"></script> In works perfectly on Mac (Chrome, Firefox and Safari), but on PC (Chrome and IE), it doesn´t show up and I get the error in the Console : "Refused to execute script from 'https://MYWEBSITE.io/feeds/productsinfo.php?pid=2&get=price&billingcycle=monthly' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled." I really need it to be fixed ASAP. Any idea what can be the problem ? Thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 1, 2016 Share Posted June 1, 2016 unless you've modified the data feed code in some way, then I don't think that it's an issue with the feed itself... i've just tried the productsinfo feed locally on a dev installation, using Chrome and IE on a PC, and it works without an issue. have you checked with your hosting company about this ? 0 Quote Link to comment Share on other sites More sharing options...
ibumu.com Posted June 29, 2016 Share Posted June 29, 2016 Hello. I have exactly the same issue. You can see html example here: https://ibumu.com/test.htm The issue is only with Chrome and IE. On Firefox work perfect! Do you know What I check on server configuration to solve it? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 29, 2016 Share Posted June 29, 2016 The issue is only with Chrome and IE. On Firefox work perfect! with Opera and Safari it works too... so issue only is with IE and Chrome. Chrome will give you a similar error message as above... Refused to execute script from 'x' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. Internet Explorer will tell you that... SEC7112: Script from x was blocked due to mime type mismatch if I take your code from test.htm, install it locally and change the feed URLs to use local dev feeds, then it works fine (including IE and Chrome) - so as the errors suggest, it's likely a MIME-type issue. Do you know What I check on server configuration to solve it? that depends on your server type! if you were running Apache, you should be able to do it using .htaccess and AddType... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.