Add Web Security section and secure (HTTP security headers)#3090
Merged
JinyangWang27 merged 1 commit intovinta:masterfrom Apr 24, 2026
Merged
Add Web Security section and secure (HTTP security headers)#3090JinyangWang27 merged 1 commit intovinta:masterfrom
JinyangWang27 merged 1 commit intovinta:masterfrom
Conversation
JinyangWang27
approved these changes
Apr 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Project
secure
Checklist
Add project-name- [project-name](url) - Description ending with period.Why This Project Is Awesome
Which criterion does it meet? (pick one)
Explain:
secure addresses a common but under-served problem: HTTP security headers are often scattered across routes, hooks, or framework-specific code, leading to drift and inconsistencies over time.
It provides a focused, minimal API for centralizing header policy and applying it consistently using ASGI and WSGI middleware. The project is actively maintained and designed for real-world usage across frameworks like FastAPI and Flask.
How It Differs
Most existing approaches rely on per-route configuration or framework-specific helpers. secure takes a middleware-first approach, allowing header policy to be defined once and applied at the application level.
This makes it easier to keep policies consistent and update them over time, especially for headers like CSP.
Notes
Adds a Web Security subcategory under Security to group application-layer web security tools.