mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 11:46:49 +00:00
A small middleware sends object-src 'none', base-uri 'self', form-action 'self' and frame-ancestors 'none': no plugin content, no injected <base> redirecting relative URLs, no form posting to another origin, no framing. script-src and style-src are left out: the templates still hold inline scripts, event handlers and javascript: URLs, which an enforced script policy would block. The middleware is added to the settings template, which the update steps and each Docker container rebuild settings.py from. |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| asgi.py | ||
| common_tags.py | ||
| middleware.py | ||
| serializers.py | ||
| settings-dev.py | ||
| settings.py.template | ||
| urls-api.py | ||
| urls.py | ||
| wsgi.py | ||
| wsgi_custom.py | ||