Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlock committed Jun 11, 2023
1 parent 810aec6 commit 22198da
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,16 @@ This adds the following headers to all responses that pass through the middlewar

* `X-Content-Type-Options: nosniff`
* `Strict-Transport-Security: max-age=31536000; includeSubDomains` - _only applied to HTTPS responses_
* `X-Frame-Options: Deny` - _only applied to `text/html` responses_
* `X-XSS-Protection: 1; mode=block` - _only applied to `text/html` responses_
* `Referrer-Policy: strict-origin-when-cross-origin` - _only applied to `text/html` responses_
* `Content-Security-Policy: object-src 'none'; form-action 'self'; frame-ancestors 'none'` - _only applied to `text/html` responses_
* `X-Frame-Options: Deny` - _only applied to "document" responses_
* `X-XSS-Protection: 1; mode=block` - _only applied to "document" responses_
* `Referrer-Policy: strict-origin-when-cross-origin` - _only applied to "document" responses_
* `Content-Security-Policy: object-src 'none'; form-action 'self'; frame-ancestors 'none'` - _only applied to "document" responses_

"Document" responses are defined as responses that return one of the following content-types:

- `text/html`
- `text/javascript`
- `application/javascript`

## Customising the security headers added to responses

Expand Down

0 comments on commit 22198da

Please sign in to comment.