I am getting the following error message:
Failed to load resource: the server responded with a status of 426 (Upgrade Required)" error on using JQuery to GET results from https://newsapi.org/v2/top-headlines?country=in&apiKey=..... using proxy-https://cors-anywhere.herokuapp.com/ on a ngrok hosted https site and the localhost too.
But the same process works if I use http
instead of https
i.e. https://cors-anywhere.herokuapp.com/https://newsapi.org/... and use the http ngrok site.
This is the response I get if I use http-
{status: "error", code: "corsNotAllowed",…} code: "corsNotAllowed" message: "Requests via the browser are not allowed on the Developer plan, except from localhost." status: "error"}
Is there a workaround for this? Will this error go it I host it properly using my domain and by an ssl ?