Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refused to execute script from 'https://cdn.syndication.twimg.com/widgets/timelines/345170787868762112?&lan…witterFetcher.callback&suppress_response_codes=true&rnd=0.2864229594762411' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled. #149

Closed
Factored-Dan opened this issue Jul 5, 2017 · 9 comments

Comments

@Factored-Dan
Copy link

Hi guys. Can anyone help with the following error:

Refused to execute script from 'https://cdn.syndication.twimg.com/widgets/timelines/345170787868762112?&lan…witterFetcher.callback&suppress_response_codes=true&rnd=0.2864229594762411' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.

I've updated to version Twitter Post Fetcher v17.0.1 and still receive the error.
screen shot 2017-07-05 at 09 58 13
screen shot 2017-07-05 at 09 57 45

@MarkStokes-outlook
Copy link

We are also experiencing this issue. Does anyone know of a resolution?

@davidgebbett
Copy link

I had the same issue, but I was on V15, as soon as I updated to V17 it worked for me, I assume JSON mime type is allowed through your server?

@Factored-Dan
Copy link
Author

Thanks for you replies guys. @jasonmayes I'm on the latest version - v17.0.1 ? Please see my screenshots on the comments above.

@jasonmayes
Copy link
Owner

jasonmayes commented Jul 11, 2017

Hmmm that is odd, it is working for me: http://jasonmayes.com/projects/twitterApi/ What config are you using? Can you try editing this CodePen with your call to twitterFetcher to see if it works here: https://codepen.io/jasonmayes/pen/Ioype

@jasonmayes jasonmayes reopened this Jul 11, 2017
@jasonmayes
Copy link
Owner

jasonmayes commented Jul 11, 2017

I dont understand how the callback in your screenshot is asking for twitterFetcher.callback as that was old code... All code now points to a different callbackName. Can you try downloading the code again and retrying / clear any cache of the file on your browser etc.

@jasonmayes
Copy link
Owner

jasonmayes commented Jul 11, 2017

Update: Looking at the file you have imported you are actually using version 15.0 see: https://arndalemorecambe.co.uk/modules/mod_opening_times/assets/js/twitterFetcher_min.js

image

@Factored-Dan
Copy link
Author

Hi @jasonmayes. My bad, there seemed to be a reference to an old version on the website as well as the new version I was using, loading both scripts causing an issue. I can confirm the script is now working. Thank you for your help

@jasonmayes
Copy link
Owner

No problem :-)

@HenryCullen
Copy link

Hi @jasonmayes , did you find a solution to this. I'm having the same issue with a twitter widget on my side. It works perfectly in the local html file but when I open the github website it only displays "Tweets By [User]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants