While frontend sends json data like:
But it appeared to be true that cookie "zbx_sessionid=b5a5f54c05a066a02cefc71cf0f3543f" is actually required instead of the "auth" object to authenticate such request.
Confirmed for 2.0.6 and 2.4.7
Why do we additionally include "auth" object in json data when we send request to a web server hosting zabbix frontend?
It misleads users who, for example, wants to perform such calls from own developed applications!
I suggest to remove unused things from json data.
Note - the cookie is required only if Guest user is disabled, which is true in most production installations.
With Guest enable - the cookie is not required at all.
Working example when Guest disabled: