Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a Strict Content Security Policy (CSP) for Enhanced Security #9

Open
dillonstreator opened this issue Dec 21, 2024 · 0 comments

Comments

@dillonstreator
Copy link

To enhance security posture, I propose implementing a strict Content Security Policy (CSP). A well-defined CSP helps mitigate various types of attacks, such as cross-site scripting (XSS) and data injection attacks, by restricting the sources from which resources can be loaded.

Request:

  1. Define a CSP that includes strict rules for resource sources.
  2. Minimize unsafe-inline and unsafe-eval directives, as these can weaken CSP’s effectiveness.
  3. Specify trusted domains for loading scripts, styles, images, and other resources.
  4. Implement a reporting mechanism to log any policy violations.

Csper has a free tool for helping to generate the CSP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant