Add cross origin headers for shared memory usage (#454)

This commit is contained in:
lukasIO 2025-07-02 18:37:36 +02:00 committed by GitHub
parent 3f4b5a14b9
commit 8826f588a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;