Updates the cross-domain policy file crossdomain.xml.
Operation description
Note
After you use the cross-domain policy file to update the resources on the origin server, you must refresh the resources that are cached on Alibaba Cloud CDN nodes. You can use the ApsaraVideo VOD console to refresh resources. For more information, see Refresh and prefetch. Alternatively, you can call the RefreshVodObjectCaches operation to refresh resources.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Content | string | Yes | The content of the cross-domain policy file. The file must be in the XML format and can contain up to 2,048 characters. | <cross-domain-policy><allow-access-from domain="*"/><allow-http-request-headers-from domain="*" headers="*" secure="false"/></cross-domain-policy> |
StorageLocation | string | Yes | The URL of the Object Storage Service (OSS) bucket. | outin-67870fd5b****1e98a3900163e1c35d5.oss-cn-shanghai.aliyuncs.com |
ResourceRealOwnerId | string | No | The ID of the resource owner. | 3461111 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "25818875-5F78-4A13-****-D7393642CA58"
}
Error codes
For a list of error codes, visit the Service error codes.