The following code examples show how to use CloudFront with AWS SDKs.
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
Javascript is disabled or is unavailable in your browser.
To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.
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.
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.