Skip to content
Snippets Groups Projects

django-csp-mail-reports

django-csp-mail-reports is a Django app to forward csp reports to admin while preventing DOS with cooldown.

Quick start

  1. Add "polls" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...,
        "cspmailreports",
    ]
  2. Include the polls URLconf in your project urls.py like this:

    path('', include('cspmailreports.urls')),
  1. Start the development server.
  2. Post a report to /report/.