API call does not work anymore after update to Nextcloud 28

Hello,

I have developed a Nextcloud plugin for the monitoring solution CheckMK (see Checkmk Exchange).
Currently Iā€™m adapting this plugin to changes in version 28 and Iā€™m experiencing a strange problem:

If I run the script which gathers all the Nextcloud information from the command line, it works fine.
If I run the script from within the Web GUI of CheckMK, it fails with 401 error (ā€œnot authorizedā€). And if I click on the link which is presented by the error message, then I get the message ā€˜{ā€œerrorā€:ā€œStrict cookie has not been found in requestā€}ā€™.

I have tried several approaches with setting the ā€œSameSiteā€-Cookie to ā€œStrictā€, but nothing was successfull. I even donā€™t know whether Iā€™m working ih the right direction hereā€¦

Does anyone know about some minor changes with version 28 when requesting the API of Nextcloud, especially what cookies are concerned?

And please excuse me to create this topic here, maybe it is a CheckMK related problem. But the plugin worked for all version of Nextcloud from 25 onwards with all versions/editions of CheckMK - until now.

Best regards

ā€“
ZapBee

By the way: All my Nextcloud installations are based on the official docker image.

Hello, Iā€™m experiencing the same issue. The authorization comes back with CSRF token failure sometimes, and sometimes it works properly.

Not sure what the issue is.

The end point im using is the following:

ocs/v2.php/apps/files_sharing/api/v1/shares