Update CORS Policy
updateCorsPolicyUpdate an existing CORS policy by ID, merging provided fields with the current policy and replacing it via PUT.
Instructions
Update an existing CORS policy by ID on the global AM CorsService. Performs a full replacement on the wire (fetch-then-PUT): the current policy is fetched first, any provided fields are merged over it, and the complete policy is PUT back to AM. Fields not supplied are preserved from the existing policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policyId | Yes | The unique identifier of the CORS policy to update | |
| acceptedOrigins | No | New allowed origins | |
| acceptedMethods | No | New HTTP methods allowed during preflight | |
| acceptedHeaders | No | New non-simple request headers allowed during preflight | |
| exposedHeaders | No | New response headers exposed to the browser | |
| maxAge | No | New preflight cache duration in seconds | |
| allowCredentials | No | Whether to send Access-Control-Allow-Credentials: true on responses | |
| enabled | No | Whether the policy is enabled |