Skip to content
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
@tbroyer

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 to script-src
  • add https://widget.battleforthenet.com to child-src
  • add 'sha256-2V9nAQ7jmNi+KiCY0h7ybeJqEOY6KbSS7uPieMa6VVc=' (or unsafe-inline) to style-src;
    however that means that if you change the content of the stylesheet, it'll be blocked; and unsafe-inline grants too much rights for other stylesheets.
    How about using an external stylesheet instead (like Twitter does) so the style-src can simply whitelist https://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)

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions