Skip to main content

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


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)

Uploaded Source

Built Distribution

asgi_sage-0.1.0a1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page