Jump to content

Data feed not working


CamilleB

Recommended Posts

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

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

  • 4 weeks later...
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...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated