汇成软件 Create the world!!!

Nginx设置跨域

配置代码

    add_header Access-Control-Allow-Origin '*';
    add_header Access-Control-Allow-Methods 'POST,PUT,GET,DELETE';
    add_header Access-Control-Allow-Headers 'version, access-token, user-token, Accept, apiAuth, User-Agent, Keep-Alive, Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With';


下图显示:
7d268ce0606e4e73918b109369c203ae.png

作者:admin 分类:Linux 浏览:577 评论:0
留言列表
发表评论
来宾的头像