当前位置:首页 > 前端 > 正文

php 解决跨域问题

header(‘Access-Control-Allow-Origin:*‘);
header(‘Access-Control-Allow-Methods:POST,GET,OPTIONS‘);
header(‘Access-Control-Allow-Headers:x-requested-with,content-type,requesttype,token‘);