Skip to main content

2025 年 6 月 20 日

Content Type Checking

By default, Horizon 8 accepts requests with the following declared content types only:

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

Note: In earlier releases, this protection was deactivated by default.

To restrict the content types that Horizon 8 accepts, add the following entry to the file locked.properties:

acceptContentType.1=content-type

For example:

acceptContentType.1=x-www-form-urlencoded

To accept another content type, add the entry acceptContentType.2=content-type, and so on

To accept requests with any declared content type, specify acceptContentType=*.

此頁面對您有幫助嗎?

針對本主題提供意見回饋

本主題對您有幫助嗎?

請勿填寫任何個人或機密資訊。

正在產生連結…