美文网首页
php终极解决跨域问题

php终极解决跨域问题

作者: 王玉伟的伟 | 来源:发表于2019-12-04 22:42 被阅读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');
    

    相关文章

      网友评论

          本文标题:php终极解决跨域问题

          本文链接:https://www.haomeiwen.com/subject/uwjrgctx.html