chrome-extension-boilerplate icon indicating copy to clipboard operation
chrome-extension-boilerplate copied to clipboard

Error message with inline style

Open danmaz74 opened this issue 4 years ago • 2 comments

When opening the popup, this error gets registered for the extension:

Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self'".

Fresh install with Chrome Version 79.0.3945.117 (Official Build) (64-bit) [mac os]

danmaz74 avatar Jan 12 '20 16:01 danmaz74

add below line to fix the issue

"content_security_policy": "default-src 'self'; style-src 'self' data: 'unsafe-inline';",

anishekm avatar Mar 04 '20 16:03 anishekm

fyi make sure to load the unpacked extension again after running npx webpack

sshah98 avatar Apr 24 '20 02:04 sshah98