We’re trying to GET
a url programmatically (/_opendistro/_alerting/destinations) and we’re receiving a 405. When we try the same url in Kibana’s dev tools, it works as expected. We are accessing the URLs using two different identities, which is likely the problem, but not sure what the problem is since usually missing roles are returned. This is the response instead:
{"error":"Incorrect HTTP method for uri [/_opendistro/_alerting/destinations] and method [GET], allowed: [POST]","status":405}