Nginx 设置 跨域 针对字体文件

后端 · 2023-09-25
location ~* \.(eot|otf|ttf|woff|woff2)$ {
    add_header Access-Control-Allow-Origin *;
    expires max;
}
nginx 字体文件跨域
Theme Jasmine by Kent Liao