CSP-Logrocket处理?

时间:2018-11-13 17:53:02

标签: javascript content-security-policy

在Logrocket方面,我完全无法获得有关内容安全策略配置的相关信息。

我的浏览器向我抛出那些错误:

  

拒绝从中创建工作人员   “ blob:http://localhost:3005/db6c0a5a-f849-46bb-9a80-38423csdf9a”   因为它违反了以下“内容安全策略”指令:   “ child-src'self'本地主机:7331”。请注意,'worker-src'不是   明确设置,因此将'child-src'用作备用。

     

拒绝从中创建工作人员   'data:application / javascript,!function(e)%7Bvar%20t%3D%7B%7D%3Bfunction%20r(n)%7Bif(t%5Bn%5D)return%20t%5Bn%5D.exports%3Bvar% 20o%3Dt%5Bn%5D%3D%7Bi%3An%2Cl%3A!1%2Cexports%3A%7B%7D%7D%3Breturn%20e%5Bn%5D.call(o.exports%2Co%2Co.exports% 2Cr)%2Co.l%3D!0%2Co.exports%7Dr.m%3De%2Cr.c%3Dt%2Cr.d%3Dfunction(e%2Ct%2Cn)%7Br.o(e%2Ct)%7C %7CObject.defineProperty(e%2Ct%2C%7Benumerable%3A!0%2Cget%3An%7D)%7D%2Cr.r%3Dfunction(e)%7B%22undefined%22!%3Dtypeof%20Symbol%26%26Symbol。 toStringTag%26%26Object.defineProperty(e%2CSymbol .... ict%22%3Be.exports%3Dfunction(e%2Ct%2Cr%2Cn%2Co%2Ci%2Cs%2Ca)%7Bif(!e)%7Bvar% 20u%3Bif(void%200%3D%3D%3Dt)u%3Dnew%20Error(%22Minified%20exception%20出现%3B%20use%20the%20non-minified%20dev%20environment%20for%20the%20full%20error%20message %20and%20additional%20helpful%20warnings。%22)%3Belse%7Bvar%20l%3D%5Br%2Cn%2Co%2Ci%2Cs%2Ca%5D%2Cc%3D0%3B(u%3Dnew%20Error(t.replace (%2F%25s%2Fg%2Cfunction()%7Breturn%20l%5Bc%2B%2B%5B%5D%7D)))。名称%3D%22Invariant%20Violation%22%7Dthrow%20u.framesToPo p%3D1%2Cu%7D%7D%7D%5D)%3B'   因为它违反了以下“内容安全策略”指令:   “ child-src'self'本地主机:7331”。请注意,'worker-src'不是   明确设置,因此将'child-src'用作备用。

我应该如何在此处实施CSP以允许Logrocket连接?

0 个答案:

没有答案