Angular and PHP project 'Access-Control-Allow-Origin' header contains multiple values
问题 I am working on a php and angular 6 based single page application. The project runs normally except for today when I saw the following error at the console: Access to XMLHttpRequest at 'http://dev.local/scripts/login.php' from origin 'http://localhost:4200' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'http://localhost:4200, *', but only one is allowed. By dev.local I mean, the virtual host created using wampserver for testing purposes. On