loading...

Downgrade About Dark Mode And Content Security Policy

bayuangora profile image Bayu Angora ・1 min read

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?

Discussion

pic
Editor guide