Configure HTTP headers

Last updated:2020-11-26 19:50:22

Click Configure in the left navigation pane, find the domain name that you want to configure, and then click Manage in the Operate column. On the page that appears, click Set Http Header in the left navigation pane.

27.jpg

28.jpg

Click Add Http Header. In the dialog box that appears, set the Type and Value parameters.

29.jpg
Click Ok. The HTTP header is configured.

The following table describes the common HTTP headers.

Parameter Description
Content-Type The MIME type of the content returned to the client program.
Cache-Control The cache policy that requests and responses follow.
Content-Disposition The default file name when the requested content is saved as a file on the client program.
Content-Language The language of the returned content for the intended audience.
Expires The date and time after which the response is considered stale.
Access-Control-Allow-Origin The origin servers from which cross-origin requests are allowed.
Access-Control-Allow-Methods The request methods that are allowed for cross-origin requests.
Access-Control-Max-Age The time-to-live (TTL) value during which the response can be cached on the client program for a request that prefetches a particular resource.
Access-Control-Expose-Headers The headers that can be exposed as part of the response.

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈