nginx 怎设置字体跨域啊

皛白 2018-8-3 594


location ~ ^/.+\.(eot|ttf|woff|svg|otf) {
  add_header Access-Control-Allow-Origin *;
  add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
}

这样写报错! 报无效的ServerHash:NotMatch!
最新回复 (2)
  • 虚竹 2018-8-3
    引用 2
    你这个应该不是配置引起的,是不是多个窗口同时操作?最好只开一个窗口操作。
  • 皛白 2018-8-3
    引用 3
    虚竹 你这个应该不是配置引起的,是不是多个窗口同时操作?最好只开一个窗口操作。
    好的 谢谢
返回
发新帖