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
Provenance
- Commit
fcfd031- Tree
5fc2c42- Author
Lowell Abbott <lowell.abbott@gmail.com>- Committer
Lowell Abbott <lowell.abbott@gmail.com>- Parent
09a0d2e
1 file changed+7 added−7 removed
modified:docs/security.rst+7 added-7 removed
106 unmodified lines107 108 Security Headers109 ----------------110 111-This section contains a list of headers supported by Flask.111+This section contains a list of HTTP security headers supported by Flask.112 To configure HTTPS and handle the headers listed below we suggest the package `flask-talisman <https://github.com/GoogleCloudPlatform/flask-talisman>`_. 113 114 HTTP Strict Transport Security (HSTS)115 -------------------------------------116 117-Redirects http requests to https on all urls, preventing Man-in-the-middle (MITM) attacks.117+Redirects HTTP requests to HTTPS on all URLs, preventing man-in-the-middle (MITM) attacks.118 119 Example:120 121 .. sourcecode:: none6 unmodified lines128 129 HTTP Public Key Pinning (HPKP)130 ------------------------------131 132-This enables your web server to authenticate with a client browser using a specific certificate key to prevent Man-in-the-middle (MITM) attacks.132+This enables your web server to authenticate with a client browser using a specific certificate key to prevent man-in-the-middle (MITM) attacks.133 134 Example:135 136 .. sourcecode:: none1 unmodified line138 Public-Key-Pins: pin-sha256="base64=="; max-age=expireTime [; includeSubDomains][; report-uri="reportURI"] 139 140 See also `Public Key Pinning <https://developer.mozilla.org/en-US/docs/Web/HTTP/Public_Key_Pinning>`_.141 142-X-Frame-Options (Clickjacking protection)142+X-Frame-Options (Clickjacking Protection)143 -----------------------------------------144 145 Prevents the client from clicking page elements outside of the website, avoiding hijacking or UI redress attacks.146 18 unmodified lines165 166 Content Security Policy (CSP)167 -----------------------------168 169-Enhances security and prevents common web vulnerabilities such as cross-site scripting (XSS) and Man-in-the-middle (MITM) related attacks.169+Enhances security and prevents common web vulnerabilities such as cross-site scripting (XSS) and man-in-the-middle (MITM) related attacks.170 171 Example:172 173 .. sourcecode:: none1 unmodified line175 Content-Security-Policy: default-src https:; script-src 'nonce-{random}'; object-src 'none'176 177 See also `Content Security Policy <https://csp.withgoogle.com/docs/index.html>`_.178 179-Cookie options179+Cookie Options180 --------------181 182-While these headers are not directly security related, they have important options that may affect your flask application.182+While these headers are not directly security related, they have important options that may affect your Flask application.183 184 - ``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