DEV Community

Bayu Angora
Bayu Angora

Posted on

Downgrade About Dark Mode And Content Security Policy

https://observatory.mozilla.org/

Observatory (grade checker by Mozilla) will downgrade score if website still use inline style or script.

https://infosec.mozilla.org/guidelines/web_security#content-security-policy

How to fix this issue while dark mode toggle needs "onclick" to trigger and switch the light / dark mode?

Top comments (0)