Skip to content

Remove remaining CSP issues #594

@SISheogorath

Description

@SISheogorath

Since #585 we are able to configure the HSTS policy provided by helmet.

Let's take the next step to modern web security and add a Content-Security-Policy.

This can be done by helmet, too. Details about how to do this can be found here:
https://helmetjs.github.io/docs/csp/

Keep in mind we should allow people themselves to enable and extend them. We want to ship secure defaults, so they should be enabled by default.

Also, keep in mind that we have the usecdn option which will include external sources. These should be added when usecdn is enabled, while it shouldn't be allowed to use them by default when usecdn is disabled.

Last but not least there is some validation work to do. Make sure that the features page is successfully rendered by default. Including all external embeddings like YouTube, Disqus, Google Analytics and more.

Pull Requests are very welcome ❤️

This is maybe interesting for someone who wants to work on web security and learn about the current technologies.

Some background information:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions