Add cross origin headers for shared memory usage

This commit is contained in:
lukasIO 2025-07-02 18:16:03 +02:00
parent 3f4b5a14b9
commit b61432414d

View File

@ -15,6 +15,23 @@ const nextConfig = {
return config;
},
headers: async () => {
return [
{
source: '/(.*)',
headers: [
{
key: 'Cross-Origin-Opener-Policy',
value: 'same-origin',
},
{
key: 'Cross-Origin-Embedder-Policy',
value: 'credentialless',
},
],
},
];
},
};
module.exports = nextConfig;