用于控制页面是否可以被嵌入到 、<frame>、<embed> 或 <object> 元素中
{
"domain": "apitest1.rgslb.link",
"enable_cors": true,
"cors_config": {
"access_control_allow_origins": {
"type": "*",
"values": []
},
"access_control_allow_headers": {
"type": "*",
"values": [
"host",
"user-agent"
]
},
"access_control_allow_methods": {
"type": "customize",
"values": [
"GET",
"POST"
]
},
"access_control_expose_headers": {
"type": "none",
"values": []
},
"access_control_max_age_sec": 604
},
"security_headers_config": {
"strict_transport_security": {
"enable": true,
"access_control_max_age_sec": 31536000,
"preload": true,
"include_subdomains": false
},
"content_type_options": {
"enable": true
},
"frame_options": {
"enable": true,
"frame_option": "SAMEORIGIN"
},
"xss_orotection": {
"enable": true,
"protection": 1,
"mode_block": true,
"report_uri": "http://www.baidu.com"
},
"referrer_policy": {
"enable": true,
"referrer_policy": "no-referrer"
},
"content_security_policy": {
"enable": true,
"content_security_policy": "default-src"
}
},
"custom_headers_config": [
{
"key": "CDN",
"value": "fusion"
},
{
"key": "test",
"value": "fusion-test"
}
],
"remove_headers_config": [
{
"key": "date"
}
]
}
curl --location --request POST 'https://ctgcdn.esurfingcloud.com/API/cdn/domain/http/response/headers' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"domain": "apitest1.rgslb.link",
"enable_cors": true,
"cors_config": {
"access_control_allow_origins": {
"type": "*",
"values": []
},
"access_control_allow_headers": {
"type": "*",
"values": [
"host",
"user-agent"
]
},
"access_control_allow_methods": {
"type": "customize",
"values": [
"GET",
"POST"
]
},
"access_control_expose_headers": {
"type": "none",
"values": []
},
"access_control_max_age_sec": 604
},
"security_headers_config": {
"strict_transport_security": {
"enable": true,
"access_control_max_age_sec": 31536000,
"preload": true,
"include_subdomains": false
},
"content_type_options": {
"enable": true
},
"frame_options": {
"enable": true,
"frame_option": "SAMEORIGIN"
},
"xss_orotection": {
"enable": true,
"protection": 1,
"mode_block": true,
"report_uri": "http://www.baidu.com"
},
"referrer_policy": {
"enable": true,
"referrer_policy": "no-referrer"
},
"content_security_policy": {
"enable": true,
"content_security_policy": "default-src"
}
},
"custom_headers_config": [
{
"key": "CDN",
"value": "fusion"
},
{
"key": "test",
"value": "fusion-test"
}
],
"remove_headers_config": [
{
"key": "date"
}
]
}'
{"code":1,"message":"OK","data":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET,POST"},{"key":"Access-Control-Max-Age","value":604},{"key":"CDN","value":"fusion"},{"key":"test","value":"fusion-test"},{"key":"date","action":"remove"}],"domain":"apitest1.rgslb.link"}