Skip to content

Commit c2a77e8

Browse files
Fennygitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent 0710c8c commit c2a77e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

middleware.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ middleware.Helmet(config ...HelmetConfig) func(*Ctx)
305305
| HSTSMaxAge | `int` | HSTSMaxAge sets the `Strict-Transport-Security` header to indicate how long \(in seconds\) browsers should remember that this site is only to be accessed using HTTPS. This reduces your exposure to some SSL-stripping man-in-the-middle \(MITM\) attacks. | \`\` |
306306
| HSTSExcludeSubdomains | `bool` | HSTSExcludeSubdomains won't include subdomains tag in the `Strict Transport Security` header, excluding all subdomains from security policy. It has no effect unless HSTSMaxAge is set to a non-zero value. | \`\` |
307307
| ContentSecurityPolicy | `string` | ContentSecurityPolicy sets the `Content-Security-Policy` header providing security against cross-site scripting \(XSS\), clickjacking and other code injection attacks resulting from execution of malicious content in the trusted web page context | \`\` |
308-
| CSPReportOnly | `bool` | - | \`\` |
309-
| HSTSPreloadEnabled | `bool` | - | \`\` |
310-
| ReferrerPolicy | `string` | - | \`\` |
308+
| CSPReportOnly | `bool` | | \`\` |
309+
| HSTSPreloadEnabled | `bool` | | \`\` |
310+
| ReferrerPolicy | `string` | | \`\` |
311311

312312
**Example**
313313

0 commit comments

Comments
 (0)