forked from aws-amplify/amplify-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustomHttp.yml
More file actions
21 lines (21 loc) · 741 Bytes
/
Copy pathcustomHttp.yml
File metadata and controls
21 lines (21 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Custom headers when serving docs through Amplify Hosting
#
# See: https://docs.aws.amazon.com/amplify/latest/userguide/custom-headers.html#setting-custom-headers
applications:
- appRoot: docs
customHeaders:
- pattern: "**/*"
headers:
- key: "Strict-Transport-Security"
value: "max-age=31536000; includeSubDomains"
- key: "X-Frame-Options"
value: "SAMEORIGIN"
- key: "X-XSS-Protection"
value: "1; mode=block"
- key: "X-Content-Type-Options"
value: "nosniff"
# CSP set in _document.page.tsx meta tag
- pattern: "flutter/**/*"
headers:
- key: "Cache-Control"
value: "public, max-age=300"