aws-amplify / aws-amplify/amplify-cli
Security headers for hosting on Amazon CloudFront and S3
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### Is this feature request related to a new or existing Amplify category?
hosting
### Is this related to another service?
CloudFront
### Describe the feature you'd like to request
Whoever wants to deploy a secure, production-grade frontend will sooner or later consider implementing security headers. Luckily CloudFront offers predefined policy for returning security headers: Referrer-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, X-XSS-Protection with commonly implemented values. These can be combined with CORS settings.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-response-headers-policies.html
### Describe the solution you'd like
Add option to `amplify configure hosting` to add managed security headers policy to CloudFront
### Describe alternatives you've considered
Adding it manually to Cloudfront
### Additional context
_No response_
### Is this something that you'd be interested in working on?
- [X] 👋 I may be able to implement this feature request
### Would this feature include a breaking change?
- [ ] ⚠️ This feature might incur a breaking change
Contributor guide
Assessment
This issue has not been assessed yet.