Groupfolders app: CSRF check failed

Hi all!

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?

Regards!

I believe you need to use your FQDN instead of “localhost” for your request.
curl -X GET -H “OCS-APIRequest:true” -v http://admin:admin@sub.domain.tld/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.

I posted it on: https://github.com/nextcloud/groupfolders/issues/63

1 Like