When I execute:
curl -X GET -H "OCS-APIRequest:true" -v http://admin:admin@localhost/nextcloud/index.php/apps/groupfolders/folders to returns a list of call configured folders and their settings, I get “CSRF check failed”
What I am doing wrong?
I believe you need to use your FQDN instead of “localhost” for your request.
curl -X GET -H “OCS-APIRequest:true” -v http://admin:firstname.lastname@example.org/nextcloud/index.php/apps/groupfolders/folders
Hello @Schmu, thanks for your answer.
I don’t have FQDN, I have only the ip address.
But, for example,
curl -X POST -H "OCS-APIRequest:true" -v http://admin:admin@localhost/nextcloud/ocs/v1.php/cloud/groups -d groupid="groupname" works for me.