Django has a middleware that should always be used: https://docs.djangoproject.com/en/3.0/ref/middleware/#module-django.middleware.security
I think that Litestar should also have it out of the box.
What it does? It provide security-related headers for the responses.
X-Content-Type-Options: nosniff
Referrer-Policy: no-referrer
header (also supports other values: https://docs.djangoproject.com/en/3.0/ref/middleware/#referrer-policy)There are also 3rd party django libs that also work in the same field:
Permissions-Policy
headerMaybe something else that I forgot about?
All things should be customizable and work the regular way Litestar middleware works.
If others agree, I can work on this :)
No response
No response
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too