This is be a good test of the Django 6.0 capabilities, for @Chiemezuo to work on as part of the [Content Security Policy compatibility](https://github.com/wagtail/roadmap/issues/92) GSoC project. Django 6.0 is only [due in December](https://code.djangoproject.com/wiki/Version6.0Roadmap), so this won’t be merge-able for a while, but this feels like a good task to do during GSoC nonetheless.