AWS AmazonCloudFront: Document CloudFront Functions network call restrictions in JS runtime 2.0
Summary
Replaces the statement that network calls are unsupported with a description of the new capability: one call per invocation, only to an origin on the same distribution.
Security assessment
The runtime reference now documents an egress boundary (same-distribution origin only, one call per invocation), which is a security-relevant restriction on what edge code can reach.
Evidence
+Network calls are supported only to an origin that is configured on the same distribution. A function can make one network call per invocation. For more information, see [Helper methods for network calls](./helper-functions-network-calls.html).
Diff
diff --git a/AmazonCloudFront/latest/DeveloperGuide/functions-javascript-runtime-20.md b/AmazonCloudFront/latest/DeveloperGuide/functions-javascript-runtime-20.md index 1e75b14..b03c07b 100644 --- a//AmazonCloudFront/latest/DeveloperGuide/functions-javascript-runtime-20.md +++ b//AmazonCloudFront/latest/DeveloperGuide/functions-javascript-runtime-20.md @@ -1680 +1680 @@ There is no access to environment variables. Instead, you can use CloudFront Key -There is no support for network calls. For example, XHR, HTTP(S), and socket are not supported. +Network calls are supported only to an origin that is configured on the same distribution. A function can make one network call per invocation. For more information, see [Helper methods for network calls](./helper-functions-network-calls.html).