https://github.com/tdmalone/cloudfront-security-headers
A quick Lambda@Edge function to add security headers to AWS CloudFront responses.
https://github.com/tdmalone/cloudfront-security-headers
aws cloudfront headers lambda lambda-edge node-js security
Last synced: about 1 month ago
JSON representation
A quick Lambda@Edge function to add security headers to AWS CloudFront responses.
- Host: GitHub
- URL: https://github.com/tdmalone/cloudfront-security-headers
- Owner: tdmalone
- Created: 2018-03-29T10:57:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T13:54:32.000Z (about 7 years ago)
- Last Synced: 2025-04-12T20:58:18.611Z (about 1 month ago)
- Topics: aws, cloudfront, headers, lambda, lambda-edge, node-js, security
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cloudfront Security Headers
A quick [Lambda@Edge](https://aws.amazon.com/lambda/edge/) function to add security headers to AWS [CloudFront](https://aws.amazon.com/cloudfront/) responses.
At this stage, this function is entirely based off [this blog post](https://aws.amazon.com/blogs/networking-and-content-delivery/adding-http-security-headers-using-lambdaedge-and-amazon-cloudfront/) by AWS, with some additional logic for [automatic deployments via Travis CI](.travis.yml).
To check your security headers, visit [securityheaders.io](https://securityheaders.io) or [observatory.mozilla.org](https://observatory.mozilla.org).