Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

cors error angular php

use headers:

let HEADER: HttpHeaders = new HttpHeaders(); 
HEADER.append('Access-Control-Allow-Origin', '*');
HEADER.append('Content-Type', 'application/json');
HEADER.append('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
 
PREVIOUS NEXT
Tagged: #cors #error #angular #php
ADD COMMENT
Topic
Name
5+9 =