Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: provide security middleware #3829

Open
sobolevn opened this issue Oct 18, 2024 · 0 comments
Open

Enhancement: provide security middleware #3829

sobolevn opened this issue Oct 18, 2024 · 0 comments
Assignees
Labels
Enhancement This is a new feature or request Middleware This is related to our middleware Security This is related to our security features

Comments

@sobolevn
Copy link
Member

sobolevn commented Oct 18, 2024

Summary

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.

There are also 3rd party django libs that also work in the same field:

Maybe 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 :)

Basic Example

No response

Drawbacks and Impact

No response

Unresolved questions

No response


Note

While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.

Check out all issues funded or available for funding on our Polar.sh dashboard

  • If you would like to see an issue prioritized, make a pledge towards it!
  • We receive the pledge once the issue is completed & verified
  • This, along with engagement in the community, helps us know which features are a priority to our users.
Fund with Polar
@sobolevn sobolevn added Enhancement This is a new feature or request Middleware This is related to our middleware Security This is related to our security features labels Oct 18, 2024
@sobolevn sobolevn self-assigned this Oct 18, 2024
@github-project-automation github-project-automation bot moved this to Triage in Overview Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This is a new feature or request Middleware This is related to our middleware Security This is related to our security features
Projects
Status: Triage
Development

No branches or pull requests

1 participant