1
I am trying to get any external html page via an Axios.get(), passing the url of the page in question as parameter:
axios.get("http://www.google.com")
.then(resp => {
retorno = resp.body
})
Only the server of these external pages denies access and returns the following in my application browser:
Access to Xmlhttprequest at 'https://www.google.com/' (redirected from 'http://www.google.com/') from origin 'http://localhost:8081' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested Resource.
I do not know if it is possible to do so. If not, there is another way?
So if I run this in the back-end with Node it should work?
– Lucas Pletsch