Example Project#

The django-reporting-endpoints repository contains an example project, demonstrating use of django-reporting-endpoints.

To run it locally:

  1. You will need to install ngrok or similar.

  2. Checkout the source code & install dependencies

  3. Run migrations and setup a Django superuser.

    python manage.py migrate
    python manage.py createsuperuser
    
  1. Run django server & proxy it via https.

    python manage.py runserver
    ngrok http 8000
    
  2. Open the https address that ngrok gives you.

    The homepage is designed to trigger CSP violations and report them.

  3. Open Django admin on 127.0.0.1:8000 and investigate the reports.