GithubHelp home page GithubHelp logo

srcclr / csp-reports Goto Github PK

View Code? Open in Web Editor NEW
3.0 21.0 1.0 199 KB

This is a plugin to https://discourse.org that allows you to collect Content Security Policy (CSP) violations, helpful when implementing and configuring CSP.

License: MIT License

Ruby 57.89% HTML 29.80% JavaScript 10.88% CSS 1.25% Shell 0.18%

csp-reports's Introduction

[:] CSP Reports

Description

Content Security Policy (CSP) is a standard HTTP header that allows web developers to declare allowed sources of resources like images, fonts, styles etc. that can be loaded on a web page. A CSP header can provide security against Cross-Site Scripting (XSS) and other related attacks.

Adding a new CSP header to an existing site can be challenging. The site may already use scripts and resources from a variety of domains and it can be hard to track them. Tracking them will allow the developer to add exceptions to the CSP policy or figure out alternatives for the violating resources. The aim of this project is to provide a simple and easy way for website developers to figure out a sane CSP policy for their site.

For each user we generate a unique URI that can be set in the report-uri field of a Content-Security-Policy-Report-Only header. Developers can use this header to set an initial policy, violations to the policy are then sent to the report-uri. We provide an easy way to monitor and look at violation reports on our community site. This way developers can iteratively refine their policy and once confident they can eventually set the final policy using the Content-Security-Policy header.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.