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

Added a report collector plugin which can be used to generate a collector handler. #95

Merged
merged 13 commits into from Sep 2, 2020

Commits on Sep 2, 2020

  1. Added a report collector plugin.

    It can be used to create a reports collector handler for CSP reports. The user can provide a collector object which will be called with each incoming report.
    mattiasgrenfeldt committed Sep 2, 2020
    Copy the full SHA
    ebbd71d View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    7ad2456 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    763566d View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    ada1077 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    715047a View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    736e24e View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    357533b View commit details
    Browse the repository at this point in the history
  8. Changed the collector plugin to accept both old style CSP reports and…

    … new generic reports
    
    Users are able two register two different handlers for old style CSP reports with Content-Type application/csp-report and new style generic reports with Content-Type application/reports+json. The new style reports could also contain CSPReports if the CSP is written using the report-to directive and not the report-uri directive.
    mattiasgrenfeldt committed Sep 2, 2020
    Copy the full SHA
    6b668f0 View commit details
    Browse the repository at this point in the history
  9. Improved godocs

    mattiasgrenfeldt committed Sep 2, 2020
    Copy the full SHA
    c2cc2f4 View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    21cb74e View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    9521854 View commit details
    Browse the repository at this point in the history
  12. Copy the full SHA
    b73cd53 View commit details
    Browse the repository at this point in the history
  13. Copy the full SHA
    9953ab6 View commit details
    Browse the repository at this point in the history