Javascript Angular 5 status === 0


I am having problem to consume a slim api it returns a 0 status, I did the slim setup with the cors

Failed to load https://wwww: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:4200’ is therefore not allowed access. The response had HTTP status code 401.