默认情况下,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=*。
此页面对您有帮助吗?