// 指定允许其他域名访问
header('Access-Control-Allow-Origin:*');
// 响应类型
header('Access-Control-Allow-Methods:POST');
// 响应头设置
header('Access-Control-Allow-Headers:x-requested-with,content-type');
reference:
http://blog.youkuaiyun.com/fdipzone/article/details/46390573

本文介绍了一种通过设置HTTP头部来实现跨域资源共享的方法,包括允许访问的源、响应类型及响应头等关键设置。
49万+

被折叠的 条评论
为什么被折叠?



