AWS Security ChangesHomeSearch

AWS AmazonCloudFront: CloudFront: managed policies don't forward S3 response-* params

Service: AmazonCloudFront · 2026-10-22 · Documentation medium

File: AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.md

Summary

Added an Important note and per-policy annotations explaining that managed origin request policies (AllViewer, AllViewerAndCloudFrontHeaders-2022-06, AllViewerExceptHostHeader, Elemental-MediaTailor-PersonalizedManifests) do not forward response-content-type, response-content-disposition, or response-content-encoding to Amazon S3 origins.

Security assessment

Documents that CloudFront strips S3 response header override parameters, which mitigates content-type/disposition manipulation (content sniffing/XSS) for S3 origins; this is security-relevant hardening documentation, not a specific CVE fix.

Evidence

+When you use the `AllViewer`, `AllViewerAndCloudFrontHeaders-2022-06`, `AllViewerExceptHostHeader`, or `Elemental-MediaTailor-PersonalizedManifests` managed origin request policy with an Amazon S3 origin, CloudFront doesn't forward the following query string parameters to the origin:

Diff

diff --git a/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.md b/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.md
index 437aa01..336874d 100644
--- a//AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.md
+++ b//AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.md
@@ -12,0 +13,17 @@ CloudFront provides a set of managed origin request policies that you can attach
+###### Important
+
+When you use the `AllViewer`, `AllViewerAndCloudFrontHeaders-2022-06`, `AllViewerExceptHostHeader`, or `Elemental-MediaTailor-PersonalizedManifests` managed origin request policy with an Amazon S3 origin, CloudFront doesn't forward the following query string parameters to the origin:
+
+  * `response-content-type`
+
+  * `response-content-disposition`
+
+  * `response-content-encoding`
+
+
+
+
+These parameters change the response headers that Amazon S3 returns. CloudFront continues to forward all other query strings that the policy includes.
+
+This applies only to managed origin request policies. If you use a custom origin request policy, CloudFront forwards these parameters as configured. If your application requires these parameters to be forwarded to an Amazon S3 origin, use a custom origin request policy, or [contact Support](https://console.aws.amazon.com/support/home). These parameters have no effect on non-Amazon S3 origins.
+
@@ -56 +73 @@ This policy has the following settings:
-  * **Query strings included in origin requests:** All
+  * **Query strings included in origin requests:** All. For Amazon S3 origins, CloudFront doesn't forward `response-content-type`, `response-content-disposition`, or `response-content-encoding`. For more information, see the important note at the beginning of this topic.
@@ -119 +136 @@ This policy has the following settings:
-  * **Query strings included in origin requests:** All
+  * **Query strings included in origin requests:** All. For Amazon S3 origins, CloudFront doesn't forward `response-content-type`, `response-content-disposition`, or `response-content-encoding`. For more information, see the important note at the beginning of this topic.
@@ -148 +165 @@ This policy has the following settings:
-  * **Query strings included in origin requests:** All
+  * **Query strings included in origin requests:** All. For Amazon S3 origins, CloudFront doesn't forward `response-content-type`, `response-content-disposition`, or `response-content-encoding`. For more information, see the important note at the beginning of this topic.
@@ -229 +246 @@ This policy has the following settings:
-  * **Query strings included in origin requests:** All
+  * **Query strings included in origin requests:** All. For Amazon S3 origins, CloudFront doesn't forward `response-content-type`, `response-content-disposition`, or `response-content-encoding`. For more information, see the important note at the beginning of this topic.