Werk #13049: RESTAPI: require accept header
|Component||Core & Setup|
|Title||RESTAPI: require accept header|
|Date||Oct 5, 2021|
|Checkmk Editon||Checkmk Raw (CRE)|
|Compatibility||Incompatible - Manual interaction might be required|
In previous version the accept header of the HTTP-request was completely ignored.
With this werk the accept header is obligatory. If no or a wrong accept header is provided an error with a 406 status code will be returned.
For most requests this means you have to provide the follwing header line:
For some other requests different accept headers may be required. All headers are documented in the official rest-api documentation.
For example when downloading the agent binary the following header is required:
Accept: application/octet-streamTo the list of all Werks