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=*。

Was this page helpful?

Provide feedback for this topic

Was this topic helpful?

Please do not include any personal or confidential information.

Generating link…