AWS AmazonCloudFront: Note that OPTIONS requests bypass signed cookie verification
Summary
Added a note explaining that CloudFront does not require a signed URL or signed cookies for OPTIONS requests so CORS preflight can succeed, and that OPTIONS requests are forwarded to the origin without signature verification when OPTIONS is an allowed method, with guidance to avoid returning protected content or restrict methods to GET/HEAD.
Security assessment
The note documents a concrete weakness: signed-cookie protection (an authorization/authentication control) is not enforced for OPTIONS requests, so an origin that serves protected content to OPTIONS could leak data. The guidance explicitly tells users to prevent that exposure or restrict allowed methods.
Evidence
CloudFront doesn't require a signed URL or signed cookies for `OPTIONS` requests. This allows CORS preflight requests, which browsers send without credentials, to succeed for cache behaviors that require signed URLs or signed cookies. If the cache behavior's allowed methods include `OPTIONS`, CloudFront forwards `OPTIONS` requests to your origin without verifying a signature. Make sure that your origin doesn't return protected content in response to `OPTIONS` requests, or restrict the allowed methods to `GET` and `HEAD` if your application doesn't use CORS.
Diff
diff --git a/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-cookies.md b/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-cookies.md index 94541a80a..2aeb9778f 100644 --- a//AmazonCloudFront/latest/DeveloperGuide/private-content-signed-cookies.md +++ b//AmazonCloudFront/latest/DeveloperGuide/private-content-signed-cookies.md @@ -79,0 +80,4 @@ If the request meets the requirements in the policy statement, CloudFront serves +###### Note + +CloudFront doesn't require a signed URL or signed cookies for `OPTIONS` requests. This allows CORS preflight requests, which browsers send without credentials, to succeed for cache behaviors that require signed URLs or signed cookies. If the cache behavior's allowed methods include `OPTIONS`, CloudFront forwards `OPTIONS` requests to your origin without verifying a signature. Make sure that your origin doesn't return protected content in response to `OPTIONS` requests, or restrict the allowed methods to `GET` and `HEAD` if your application doesn't use CORS. +