CloudFront Functions examples for CloudFront (original) (raw)
DocumentationAmazon CloudFrontDeveloper Guide
The following code examples show how to use CloudFront with AWS SDKs.
Examples
- Add HTTP security headers
- Add a CORS header
- Add a cache control header
- Add a true client IP header
- Add an origin header
- Add index.html to request URLs
- Normalize query string parameters
- Redirect to a new URL
- Rewrite a request URI
- Select origin closer to the viewer
- Use key-value pairs
- Validate a simple token
Sign URLs and cookies
Add HTTP security headers
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.