$(".wikiResult h3").load("
https://en.wikipedia.org/wiki/Special:Random #firstHeading i");
I would like to obtain the title of a random Wikipedia article.
The Wikipedia URL in the code above redirects to a random article, which is ideally where I would like to receive data from.
Unfortunately, due to the redirect, I receive a CORS policy error; which prevents me from receiving any data.
Is there a way in which I am able to obtain the redirected URL first, and then use this to retrieve my data, using only vanilla Javascript and/or jQuery?