I have a little problem with the module “Omeka-S-module-ApiInfo” from Daniel-KM. In principle, it does exactly what I need. We are using Omeka-S as a headless CMS with the rest api. Unfortunately, I need the total number of items of my executed search for pagination. Omeka provides this in the header. But the CORS policy forbids custom headers. I am not allowed to read them. That’s why I came to the above mentioned module. Theoretically it returns the correct results (tested with Postman/–disable-web-security) but I get a CORS-Policy error again.
The Build-In API was allowed via .htaccess file and “Access-Control-Allow-Origin”. This also works wonderfully. But somehow this does not include the module. I have already tried to put a .htaccess in the module folder, but without success.
Does anyone know the problem and can push me in the right direction?