What is CORS? Complete Tutorial on Cross-Origin Resource Sharing
Failed to load http://localhost/api/index.php: No 'Access-Control-Allow- Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. core.js:1673 ERROR HttpErrorResponse {headers: HttpHeaders ...
jquery - PHP Access-Control-Allow-Origin not working - Stack Overflow