mikemaccana / outdated-browser-rework

Detects outdated browsers and advises users to upgrade to a new version. Handles mobile devices!
MIT License
224 stars 62 forks source link

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

Open VilleMiekkoja opened 4 years ago

VilleMiekkoja commented 4 years ago

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

With webpack and content security policy that does not allow 'unsafe-inline', the library cannot load styles. I followed the webpack usage guide and it doesn't work with 'unsafe-inline' content security policy.