Cross-site policy is annoying but you can use the below JSONP pure javscript code though
function onFetchComplete(data){console.log(data);} var script = document.createElement('script'); script.src = 'https://en.wikipedia.org/w/api.php?action=query&generator=random&grnnamespace=0&prop=extracts&exchars=500&format=json&callback=onFetchComplete'; document.body.appendChild(script);
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Cross-site policy is annoying but you can use the below JSONP pure javscript code though