nginx 里设置font-face 跨域

server {
    ...
    # Fix @font-face cross-domain restriction in Firefox
	location ~* .(eot|ttf|woff)$ {
	    add_header Access-Control-Allow-Origin *;
	}
    ...
}

原贴来自snipt.net

原文地址:https://www.cnblogs.com/rubylouvre/p/3546707.html