I've got an issue with J4's smart search indexer returning a "No access-control-allow-origin" error - but only when I'm trying to reindex through the admin side. I don't get the error if I run a CLI script from SSH.
I've tried adding to the .htaccess file:
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET,PUT,POST,DELETE"
Header set Access-Control-Allow-Headers "Content-Type, Authorization"
and I tried adding this to the .htaccess file:
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
but regardless, I get the following when I run the smart search indexer:
"An Error Has Occurred
The following message was returned by the server:
undefined"
and Chrome's webdev tools show's me this error:
Access to XMLHttpRequest at 'https://pmsa1.site-ym.com/members/public_profile.asp' (redirected from 'https://dev.pmsa.org/administrator/index.php?option=com_finder&tmpl=component&format=json&task=indexer.batch&e49a52ac0a94da285b162b7fa17686e2=1') from origin 'https://dev.pmsa.org' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Is this a AdminTools configuration issue or something else? Again, don't see that error on the site itself, only when it throws that error on re-indexing.