I have workers that need access to the Shared Array buffer, to do this I learned I need to set these response headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
On the top level response
and
Cross-Origin-Embedder-Policy: require-corp
On my included JS files
I thought I did this in my .htaccess file however I still get errors when trying ti initialize an Shared Array Buffer.
My .htaccess looks like
Header set Access-Control-Allow-Origin “same-origin”
Header set Cross-Origin-Embedder-Policy “require-corp”
<FilesMatch “.(js)$”>
Header set Cross-Origin-Embedder-Policy “require-corp”
When I get the webpages I check the response headers and the customer headers are set yet Shared Array Buffer still can not be initliazedz
Please advise