跨域 nginx设置
http{
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers X-Requested-With,Origin,Content-Type, Accept;

add_header Access-Control-Allow-Methods GET,POST,OPTIONS,PUT,DELETE;
}

posted on 2017-04-06 11:13  浅唱年华1920  阅读(202)  评论(0编辑  收藏  举报