无法在NGINX中提供base64 ttf字体

时间:2019-09-16 07:05:34

标签: nginx

下面是我的配置,即使它似乎已为ttf字体进行了适当配置,也无法得到投放(文件here, from fullcalendar

[...]
http {
    [...]
    include /etc/nginx/mime.types;
    types {
        application/x-font-ttf ttf;
        font/ttf ttf;
        font/otf otf;
        font/woff woff;
        font/woff2 woff2;
        application/vnd.ms-fontobject eot;
    }
[...]
}
server {
        proxy_set_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' https://maxcdn.bootstrapcdn.com https://ajax.googleapis.com https://use.fontawesome.com; frame-src 'self'; img-src 'self' https://via.placeholder.com data: ; style-src 'self' 'unsafe-inline' https://maxcdn.bootstrapcdn.com https://use.fontawesome.com data: ; font-src 'self' https://themes.googleusercontent.com https://maxcdn.bootstrapcdn.com https://use.fontawesome.com data: ; form-action 'self'; upgrade-insecure-requests 'always'; object-src 'none'";
}
[...]

0 个答案:

没有答案