cors error angular php

Solutions on MaxInterview for cors error angular php by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "cors error angular php"
Luigi
30 May 2018
1use headers:
2
3let HEADER: HttpHeaders = new HttpHeaders(); 
4HEADER.append('Access-Control-Allow-Origin', '*');
5HEADER.append('Content-Type', 'application/json');
6HEADER.append('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');