Mask URLs in content
redirect-content-urls policy rewrites (masks) links in the response body so that they point to the equivalent link via the gateway. Use in the outbound section to rewrite response body links to the backend service to make them point to the gateway. Use in the inbound section for an opposite effect.
This policy does not change any header values such as
Location headers. To change header values, use the set-header policy.
Set the policy's elements and child elements in the order provided in the policy statement. Learn more about how to set or edit API Management policies.
- Policy sections: inbound, outbound
- Policy scopes: global, workspace, product, API, operation
- Gateways: dedicated, consumption, self-hosted
- This policy can only be used once in a policy section.
For more information about working with policies, see: