CSRF check failed trying to use API

Hi, I have a NC25 and I’m trying to play with POSTMAN and the API but I’m not able to connect to my NC instance, I always get CSFR check failed for example when I try to GET https://cloud.mydomain.com/ocs/v1.php/cloud/users and setup basic auth with the right username and password.

Any idea to solve it?

My environment is under an Apache proxy server, don’t know if this could be something related to the error.

I had the same issue and could solve it by adding a additional header to all API requests:

OCS-APIRequest: true