📜  cors错误角度php代码示例

📅  最后修改于: 2022-03-11 14:53:43.540000             🧑  作者: Mango

代码示例1
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');