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

error message on wikipedia api: Refused to execute script because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled. #8

Closed
jonsrose opened this issue Apr 13, 2016 · 2 comments

Comments

@jonsrose
Copy link

I tried executing a wikipedia rest api call from chrome using the fetch-jsonp because regular fetch caused a cross origin issue and was not allowed, but I am getting the an error message

https://en.wikipedia.org/w/api.php?action=parse&format=json&prop=text&page=United%20States&custom_callback=jsonp_1460520851470_51307

@jonsrose jonsrose changed the title https://en.wikipedia.org/w/api.php?action=parse&format=json&prop=text&page=United%20States&custom_callback=jsonp_1460520851470_51307 error message on wikipedia api: Refused to execute script because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled. Apr 13, 2016
@camsong
Copy link
Owner

camsong commented Apr 13, 2016

Can you provide a gist or paste your code here?

@jonsrose
Copy link
Author

jonsrose commented May 8, 2016

I took out the custom callback parameter and just let the fetchjsonp set the parameter and now it works ok so I will go ahead and close the issue. Here is an example of a successful url

https://en.wikipedia.org/w/api.php?action=query&prop=extracts|pageimages&format=json&exintro=&titles=Cairns%20Customs%20House&piprop=thumbnail&pithumbsize=380&callback=jsonp_1462667223891_5118

@jonsrose jonsrose closed this as completed May 8, 2016
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

2 participants