@sergiisav I'm glad you resolved, thanks for sharing what worked for your case.
The suggested .htaccess content here should work:

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ ./index.php/$1 [QSA,L] RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] </IfModule>

But can be maybe ok if you simply applied the same code used in Wordpress.