有没有一种方法可以使NUXT.JS在CSP头文件中没有'unsafe-inline'的情况下工作?

时间:2019-08-30 18:12:11

标签: vue.js webpack https http-headers nuxt.js

如何以不需要在'script-src'和'style-src'CSP参数中添加'unsafe-inline'的方式配置Nuxt.JS?

页面加载时出现以下错误:

Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”).
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“style-src”).

0 个答案:

没有答案