By default, View accepts requests with any declared content type except for connections to View Administrator.

To restrict the content types that View 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