-
Notifications
You must be signed in to change notification settings - Fork 235
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
Comments
We are also experiencing this issue. Does anyone know of a resolution? |
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? |
Thanks for you replies guys. @jasonmayes I'm on the latest version - v17.0.1 ? Please see my screenshots on the comments above. |
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 |
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. |
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 |
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 |
No problem :-) |
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]" |
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](https://user-images.githubusercontent.com/16665912/27857200-acb53e02-6168-11e7-9532-30cea5936c3e.png)
![screen shot 2017-07-05 at 09 57 45](https://user-images.githubusercontent.com/16665912/27857201-acb80218-6168-11e7-8e81-5b1231b2be47.png)
The text was updated successfully, but these errors were encountered: