DA0-DA0 / dao-dao-ui

InterChain DAO tooling UI.
https://daodao.zone
27 stars 21 forks source link

Add a Content-Security-Policy #1169

Open elsehow opened 1 year ago

elsehow commented 1 year ago

A Content-Security-Policy helps mitigate cross-site scripting (XSS) attacks by specifying allowed origins for contents like scripts and iframes.

Although we cannot specify trusted origins for all asset types (users are free to add images from any origin, for example), it may make sense to specify trusted origins for scripts and iframes.

JakeHartnell commented 11 months ago

@NoahSaso do we have this? Feel that React does a pretty good job of protecting against this.