chrome-extension-boilerplate
chrome-extension-boilerplate copied to clipboard
Error message with inline style
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]
add below line to fix the issue
"content_security_policy": "default-src 'self'; style-src 'self' data: 'unsafe-inline';",
fyi make sure to load the unpacked extension again after running npx webpack