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

此頁面對您有幫助嗎?

針對本主題提供意見回饋

本主題對您有幫助嗎?

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

正在產生連結…