Security Headers for asgi apps
Project description
asgi-sage
Security Headers Middleware for Asgi App heavily inspired by flask-talisman
TODO
- feature_policy: dict = {}, force_https: bool = True,
- force_https: bool = False,
- force_https_permanent: bool = False,
- frame_options: Optional[str] = "SAMEORIGIN",
- strict_transport_security: bool = True,
- strict_transport_security_preload: bool = False,
- strict_transport_security_max_age: int = 60 * 60 _ 24 * 365,
- strict_transport_security_include_subdomains: bool = True,
- content_security_policy: str = "default-src: 'self'",
- content_security_policy_nonce_in: list = [],
- content_security_policy_report_only: bool = False,
- content_security_policy_report_uri: Optional[str] = None,
- referrer_policy: str = "strict-origin-when-cross-origin",
- session_cookie_secure: bool = True,
- session_cookie_http_only: bool = True,
- force_file_save: bool = False,
- Per View override
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asgi-sage-0.1.0a1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for asgi_sage-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be16e53b1482098b72049cf142c4db7aabbacf8e1d8ebcc4d09737b0e9c224b1 |
|
MD5 | 879192a81e3dbbbeef32c66c60ea4f4d |
|
BLAKE2b-256 | 77eadeb2f8b1894f5da4bba6e167567785e53e94143a50ea002c7485ec7c31e2 |