Skip to main content

2026 年 5 月 28 日

内容类型检查

默认情况下,Horizon 8 仅接受具有以下声明的内容类型的请求:

  • application/x-www-form-urlencoded
  • application/xml
  • text/xml

**注意:**在以前的版本中,将默认停用该保护。

要限制 Horizon 8 接受的内容类型,请在 locked.properties 文件中添加以下条目:

acceptContentType.1=content-type

例如:

acceptContentType.1=x-www-form-urlencoded

要接受其他内容类型,请添加 acceptContentType.2=content-type 条目,依此类推。

要接受具有任何声明的内容类型的请求,请指定 acceptContentType=*

此页面对您有帮助吗?

对本主题提供反馈

本主题对您有帮助吗?

请勿填写任何个人信息或机密信息。

正在生成链接…