Example Project#
The django-reporting-endpoints repository contains an example project, demonstrating use of django-reporting-endpoints.
To run it locally:
You will need to install ngrok or similar.
Checkout the source code & install dependencies
Run migrations and setup a Django superuser.
python manage.py migrate python manage.py createsuperuser
Run django server & proxy it via https.
python manage.py runserver ngrok http 8000
Open the https address that ngrok gives you.
The homepage is designed to trigger CSP violations and report them.
Open Django admin on 127.0.0.1:8000 and investigate the reports.