Set the back-to-source host function.

Note If the origin site is an OSS domain name, the OSS domain name must be set as the back-to-source host (that is, the source site domain name) to ensure normal back-to-source operation.

Request parameters

Parameters Type Required Example value Description
Action String Yes Setsourcehostconfig The name of this interface. Value: SetSourceHostConfig
DomainName String Yes Your CDN domain name.
BackSrcDomain String No Custom back-to-source domain name.
Enable String No On

Enum on, off. Whether the custom host configuration is enabled. 

Default value: on

Return parameters

Parameters Type Example values Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 Request ID


Request example
&Public request parameter
Normal return example
  • JSON format

Exception return example
  • JSON format

        "Message":"The request processing has failed due to some unknown error.",