省略一万字…

localtion ~ .*\.(ttf|otf|eot|woff)$ {
    add_header Access-Control-Allow-Origin *;
    或指定域名
    add_header Access-Control-Allow-Origin "http://www.example.com";    
}