This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
Document needed changes in Content-Security-Policy / possibly update script for better CSP support #106
Open
Description
I've setup a CSP on my blog, which by default blocks the script.
Changes I had to make to make it work:
- add
https://widget.battleforthenet.com
toscript-src
- add
https://widget.battleforthenet.com
tochild-src
- add
'sha256-2V9nAQ7jmNi+KiCY0h7ybeJqEOY6KbSS7uPieMa6VVc='
(orunsafe-inline
) tostyle-src
;
however that means that if you change the content of the stylesheet, it'll be blocked; andunsafe-inline
grants too much rights for other stylesheets.
How about using an external stylesheet instead (like Twitter does) so thestyle-src
can simply whitelisthttps://widget.battleforthenet.com
and you're free to make last-minute changes to the stylesheet?
Did I miss something?
(note that I've only checked that this displays the popup and it can be dismissed, not that the form can be submitted)