nginx解决跨域

location ~* \.(eot|ttf|woff|woff2|svg)$ {
    add_header Access-Control-Allow-Origin *;
    add_header Access-Control-Allow-Headers X-Requested-With;
    add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
}

 

posted @ 2018-08-22 14:36  ヾJ﹍Hヾ  阅读(132)  评论(0编辑  收藏  举报