Skip to content
Myr

Add capitalize and other details

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Lowell Abbott · committed by Lowell Abbott · parent 09a0d2e · Browse files · 1 file+7 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−7 removed

  • other:+7 added−7 removed

1 file+7 added−7 removed

modified:docs/security.rst+7 added-7 removed
106 unmodified lines
107108Security Headers109----------------110111This section contains a list of headers supported by Flask.111This section contains a list of HTTP security headers supported by Flask.112To configure HTTPS and handle the headers listed below we suggest the package `flask-talisman <https://github.com/GoogleCloudPlatform/flask-talisman>`_. 113114HTTP Strict Transport Security (HSTS)115-------------------------------------116117Redirects http requests to https on all urls, preventing Man-in-the-middle (MITM) attacks.117Redirects HTTP requests to HTTPS on all URLs, preventing man-in-the-middle (MITM) attacks.118119Example:120121.. sourcecode:: none
6 unmodified lines
128129HTTP Public Key Pinning (HPKP)130------------------------------131132This enables your web server to authenticate with a client browser using a specific certificate key to prevent Man-in-the-middle (MITM) attacks.132This enables your web server to authenticate with a client browser using a specific certificate key to prevent man-in-the-middle (MITM) attacks.133134Example:135136.. sourcecode:: none
1 unmodified line
138 Public-Key-Pins: pin-sha256="base64=="; max-age=expireTime [; includeSubDomains][; report-uri="reportURI"] 139140See also `Public Key Pinning <https://developer.mozilla.org/en-US/docs/Web/HTTP/Public_Key_Pinning>`_.141142X-Frame-Options (Clickjacking protection)142X-Frame-Options (Clickjacking Protection)143-----------------------------------------144145Prevents the client from clicking page elements outside of the website, avoiding hijacking or UI redress attacks.146
18 unmodified lines
165166Content Security Policy (CSP)167-----------------------------168169Enhances security and prevents common web vulnerabilities such as cross-site scripting (XSS) and Man-in-the-middle (MITM) related attacks.169Enhances security and prevents common web vulnerabilities such as cross-site scripting (XSS) and man-in-the-middle (MITM) related attacks.170171Example:172173.. sourcecode:: none
1 unmodified line
175 Content-Security-Policy: default-src https:; script-src 'nonce-{random}'; object-src 'none'176177See also `Content Security Policy <https://csp.withgoogle.com/docs/index.html>`_.178179Cookie options179Cookie Options180--------------181182While these headers are not directly security related, they have important options that may affect your flask application.182While these headers are not directly security related, they have important options that may affect your Flask application.183184- ``Secure`` limits your cookies to HTTPS traffic only.185- ``HttpOnly`` protects the contents of your cookie from being visible to XSS.186- ``SameSite`` ensures that cookies can only be requested from the same domain that created them but this feature is not yet fully supported across all browsers.
11 unmodified lines