I would like to make an HTTP request to a website with my Angular App. However, I get the error message
"Access to XMLHttpRequest at 'url1' from origin 'url2' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
How can I avoid this?
On the internet, I read that you can handle this with a proxy. Unfortunately, I did not succeed.
I can't change anything on the server.
getinfo(): void {
this.http.get('url1' ).subscribe(data => {
console.log(data);
}
);
}