Skip to main content

Custom Header

This setting is available for all resource types.

Parameters

Description

Type

Required

organization_uuid

The created organization in Medianova Cloud Panel unit ID value. Path parameter.

String

Yes

resource_uuid

The created resource in Medianova Cloud Panel unit ID value. Path parameter.

String

Yes

status_custom_headers

The values of the status_custom_header must be any of the; “true”, “false”.

Boolean

Yes

custom_headers

If status_custom_headers is true, custom headers is entered. If status_custom_headers is true, custom headers is required.

Object

Yes

custom_headers.type

The values of the custom_headers_type must be any of the; “request_header”, “add_header”, “hide_header”. If status_custom_headers is true, type is required.

String

Yes

custom_headers.key

If status_custom_headers is true, custom headers.key is entered. If status_custom_headers is true, key is required.

String

Yes

custom_headers.value

If status_custom_headers is true, custom headers.value is entered. If status_custom_headers is true, value is required.

String

Yes

Notes:

Format of HTTP request header names and values
The name of the HTTP request header you want to set or remove can only contain:

  • Alphanumeric characters: a-z, A-Z, and 0-9

  • The following special characters: - and _

The value of the HTTP request header you want to set can only contain:

  • Alphanumeric characters: a-z, A-Z, and 0-9

  • The following special characters: _ :;.,\/"'?!(){}[]@<>=-+*#$&`|~^%

The following values ​​cannot be added to the add_header parameter.

A_Dynamic, If-None-Match, Sec-WebSocket-Origin, X-Forward-Peer, Accept-Ranges, If-Range, Sec-WebSocket-Protocol, X-Forward-Type, X-Forward-Ip, Keep-Alive, Sec-WebSocket-Version, X-Forward-Uri, Allow, Key, Set-Cookie, X-Forwarded-For, Authentication-Info, Last-Modified, Tcp-Retrans, X-IP-Region, Authorization, Link, Title, X-IP-Region-CN, X-Forward-Measured, Location, Transfer-Encoding, X-Ip-Blackwhite-List, Cdn-Qos, Max-Forwards, Upgrade, X-Local-Ip, Cdn-Server-Ip, Meter, Vary, X-Log-Url, Cdn-Src-Ip, Mime-Version, Via, X-MAA-Alias, Conf-Err-Host, Negotiate, WWW-Authenticate, X-MAA-Auth, Conf-File, Origin, Warning, X-Max-Conns, Conf-File-List, Partition-Block-Size, Ws-Hdr, X-Mem-Url, Conf-Option, Pragma, WsTag, X-Mgr-Traffic, Conf-Other, Proxy-Authenticate, X-Accelerator-Vary, X-Miss-Rate-Limit, Connection, Proxy-Authentication-Info, X-Appa, X-Miss-Times-Limit, Content-Encoding, Proxy-Authorization, X-Appa-Origin, X-No-Referer, Content-Length, Proxy-Connection, X-Black-List, X-Query-Key, Content-Location, Proxy-Support, X-Bwctrl-Limit, X-Rate-Limit, Content-MD5, Public, X-Bwctrl-Para, X-Refresh-Pattern, Content-Range, Purge-Domain, X-Cache, X-Request-Id, Sec-WebSocket-Nonce, Purge-Extra, X-Cache-2, X-Request-Uri, Date, Range, X-Cache-Lookup, X-Request-Url, Dynamic, Request-Range, X-Cacheable, X-Resp-Time, ETag, Retry-After, X-Cdn-Src-Port, X-Rewrite-Url, Error, Sec-WebSocket-Accept, X-Client-Ip, X-Squid-Error, Expect, Sec-WebSocket-Draft, X-DNS-Time, X-Times-Limit, If-Modified-Since, Sec-WebSocket-Extensions, X-Denyattack-Dynconf, X-Url-Blackwhite-List, From, Sec-WebSocket-Key, X-Error-Status, X-Via-CDN, Front-End-Https, Sec-WebSocket-Key1, X-Error-URL, X-White-List, Host, Sec-WebSocket-Key2, X-Forward-Host, If-Match, Sec-WebSocket-Location

  • The following values ​​cannot be added to the request_header parameter.

["origin", "accept-ch", "clear-site-data", "push-policy", "wstag", "tcp-retrans", "access-control-allow-methods", "access-control-max-age", "vary", "date", "x-forward-type", "width", "age", "etag", "purge-extra", "x-cacheable", "access-control-allow-headers", "front-end-https", "ping-to", "content-range", "cross-origin-opener-policy", "location", "viewport-width", "mime-version", "proxy-support", "x-resp-time", "if-range", "sec-fetch-dest", "device-memory", "x-mem-url", "cdn-src-ip", "ping-from", "allow", "x-url-blackwhite-list", "early-data", "sec-websocket-extensions", "if-unmodified-since", "x-forward-uri", "conf-file", "x-download-options", "x-error-status", "negotiate", ”x-permitted-cross-domain-policies", "service-worker-allowed", "x-appa", "x-firefox-spdy", "content-dpr", "x-miss-times-limit", "x-bwctrl-limit", "x-bwctrl-para", "x-max-conns", "nel", "public-key-pins-report-only", "x-maa-alias", "sec-websocket-location", "x-cache-2", "authorization", "expect", "last-event-id", "sec-websocket-key", "x-refresh-pattern", "forwarded", "x-local-ip", "sec-websocket-protocol", "feature-policy", "cross-origin-resource-policy", "request-range", "conf-other","strict-transport-security", "signed-headers", "cdn-server-ip", "sec-websocket-version", "accept", "x-black-list", "content-location", "sourcemap", "partition-block-size", "proxy-authentication-info", "cross-origin-embedder-policy", "x-request-id", "x-dns-prefetch-control","if-none-match", "if-non-match", "public","x-white-list", "x-ua-compatible", "keep-alive", "transfer-encoding", "alt-svc", "max-age", "last-modified", "x-xss-protection", "sec-websocket-nonce","dnt","link", "x-robots-tag","key", "expect-ct","sec-fetch-site", "access-control-request-headers", "x-error-url", "x-log-url", "content-encoding", "x-times-limit", "x-appa-origin", "x-miss-rate-limit", "x-ip-region","dynamic", "x-squid-error", "from","accept-ch-lifetime","x-maa-auth","connection","x-via-cdn","max-forwards","upgrade","sec-fetch-user", "content-security-policy-report-only", "pragma", "save-data", "x-client-ip", "cdn-qos", "x-powered-by", "x-forward-measured","accept-push-policy","server","large-allocation", "x-request-uri", "x-forward-ip","host", "proxy-authenticate", "x-request-url", "x-cache-lookup", "conf-option", "x-forward-host", "upgrade-insecure-requests", "x-accelerator-vary","signature", "x-ip-blackwhite-list", "x-cdn-src-port", "sec-websocket-draft", "sec-websocket-origin", "x-ip-region-cn", "public-key-pins","ws-hdr","if-match","proxy-authorization","x-rate-limit", "sec-fetch-mode", "trailer", " x-rewrite-url", "via","x-cache","x-mgr-traffic", "accept-signature", "warning", "x-forwarded-proto", "if-modified-since", "authentication-info", "access-control-request-method", "content-length","x-frame-options(xfo)", "range","a_dynamic","te","x-forwarded-host", "title", "www-authenticate", "tk", "x-query-key", "accept-charset", "access-control-allow-origin","accept-ranges","report-to","access-control-expose-headers","x-content-type-options", "proxy-connection", "server-timing","retry-after","x-requested-with", "x-no-referer", "x-forward-peer", "sec-websocket-accept","x-forwarded-for", "conf-err-host", "sec-websocket-key2", "access-control-allow-credentials", "x-denyattack-dynconf","referer-policy","sec-websocket-key1", "content-security-policy", "timing-allow-origin", "x-dns-time","conf-file-list", "x-expireurl", "x-pingback", "purge-domain", "dpr"]

Payload

CODE
{
    "resource_uuid": "****-****-****-*****",
    "status_custom_headers": true,
    "custom_headers": [
        {
            "type": "request_header",
            "key": "Key1",
            "value": "Value1"
        },
        {
            "type": "add_header",
            "key": "Key2",
            "value": "Value2"
        },
        {
            "type": "hide_header",
            "key": "Key3"
        }
    ]
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.