php终极解决跨域问题

2019-12-04  本文已影响0人  王玉伟的伟
header('content-type:application:json;charset=utf8');
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST');
header('Access-Control-Allow-Headers:x-requested-with,content-type');
header('Access-Control-Allow-Credentials: true'); // 设置是否允许发送 cookies
header('Content-Type: image/png');
上一篇下一篇

猜你喜欢

热点阅读