The browser opens the website and reports an error OTS parsing error: invalid version tag
. There are many reasons for this.
This error can also be caused when Nginx is deployed. Nginx configuration file (nginx.conf
) added
location ~ \.(eot|otf|ttf|woff|svg)$ {
add_header Access-Control-Allow-Origin *;
}
If not, try adding in the corresponding mime.types
in nginx.conf
application/font-sfnt otf ttf;
application/font-woff woff;
application/font-woff2 woff2;
application/vnd.ms-fontobject eot;