I am trying to get data from an API from the internet, using Angular version 16, I tried everything but I still get the CORS error saying "Access to XMLHttpRequest at 'http://www.travel-advisory.info/api' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request." Here is the internet.service.ts file enter image description here Also I don't really know how to implement the Headers, I tried a few codes but didn't change anything
Here is also the proxy.config.json file I created based on research , I also configure the angular.json file and put up },enter image description here "serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "move-safe:build",
"proxyConfig": "src/proxy.config.json"
},
"development": {