How to allow XMLHttpRequest in angular. because I have getData.php
and the error is Access to XMLHttpRequest at 'http://localhost:8888/*****/****/getData.php' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.