Set custom HTTP headers.

Request parameters

Parameters Type Required Example value Description
Action String Yes SetHttpHeaderConfig The name of this interface. Value: SetHttpHeaderConfig
Domainname String Yes Your CDN domain name.
Headerkey String Yes Content-Type

HTTP header parameter. Value:

  • Content-Type
  • Cache-control
  • Content-Disposition
  • Content-language
  • Expires
  • Access-control-allow-Origin
  • Step 4: Parameters configuration Access-Control-Allow-Methods:
  • Access-control-allow-headers
  • Access-control-max-age
  • Access-control-expose-headers
  • Access-control-allow-Credentials
Headervalue String Yes application HTTP header parameter value.

Return parameters

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


Request example

Http:// /? Action = fig
& Domainname = maid
& Headerkey = Content-Type
& Headervalue = Application
Normal return sample
  • JSON format

Exception return sample
  • JSON format

        "Code": "internalerror ",
        "Hostid": "maid ",
        "Message":"The request processing has failed due to some unknown error.",