拒绝加载字体错误

时间:2018-08-30 00:02:02

标签: javascript node.js d3.js plotly ejs

我正在尝试在nodejs中使用plotly绘制图形。我收到以下错误:

Refused to load the font 'data:application/font-woff;base64,d09GRgABAAAAAJPsABIAAAABOnAAAQAAAACRvAAAAjAAAAarAAAAAAAAAABHREVGAACH3AAAAB8AAAAgAZkABUdQT1MAAIf8AAAJYgAAIEoSJsZLR1NVQgAAkWAAAABaAAAAgOq9Lj5PUy8yAAACDAAAAE4AAABgW/hYh2NtYXAAABMoAAAChQAAA66C/ZF+Y3Z0IAAAF7gAAABOAAAATgQWCyNmcGdtAAAVsAAAAQIAAAFzBlmcN2dhc3AAAIfQAAAADAAAAAwADgAOZ2x5ZgAAGuQAAGObAADUaN4bMjBoZG14AAAFUAAADdcAAB+otSCvTGhlYWQAAAGUAAAANAAAADb+7d+UaGhlYQAAAcgAAAAhAAAAJAgKBL1obXR4AAACXAAAAvEAAAWMbaNf4WxvY2EAABgIAAAC2gAAAtoqVPTibWF4cAAAAewAAAAgAAAAIAOPBQxuYW1lAAB+gAAABLgAA...mGuNJyKtWKCpXDV3d/uWTS477WykdO175nFoNy1wgH8y/Qt28QjNUGrR9A10Dz1+3/5oez68m2uTmP4bvuQLIBlPZQaTOEIInimt5cOG/FvvMYApHCda9azTj1edR4cgnlPGtbEB46oxUwNVAtaSjVTgGNdn701lbLydvqinla1tTfghWHxoPX0BFj/l9grtvfYjX5R4w7tNKNALdoj8QysINFlKgoomEe8I4Gd7BH3yMqGAggUxxmzDF8rQktVa2aR6n3WeEUPvPxdJqawIzzm84a7TCGDRmkHudU5JMTqBBMi4xyj8IR6NcvdeKqIgsjtPO8QJCe5sJpTRXJbw2WBUdXWWHG4d5086abU7p5LJdiXO7Ec3k1f8HZ1TlkaboI6blIn1dM/DyIInkoXHjLOEpmf5RfNO1CwrYiftWWTH7cJIM/ES8qNIS+EbSecRF7BIsHWg556RJQUJHAGb1vOyscF9UIz8VF8tB8PrTx9A1AJ3wy3zzlLzZsSzQ=' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'font-src' was not explicitly set, so 'default-src' is used as a fallback.

我知道之前也曾问过类似的问题,但是那里的答案并没有解决我的问题。我尝试禁用语法并添加行<meta http-equiv="Content-Security-Policy" content="font-src 'self' data:; img-src 'self' data:; default-src 'self' http://localhost:8080/">,但没有帮助。

我还尝试了其他浏览器,例如chrome,opera和safari。

谢谢。

0 个答案:

没有答案