Skip to content

Commit

Permalink
fix: 缩小 COOP 和 COEP 范围
Browse files Browse the repository at this point in the history
  • Loading branch information
huayemao committed Jun 21, 2024
1 parent 086a564 commit c0d8d30
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,33 @@ const nextConfig = {
async headers() {
return [
{
source: '/(.*?)',
source: '/data-process',
headers: [
{
key: 'Cross-Origin-Embedder-Policy',
value: 'require-corp',
},
{
key: 'Cross-Origin-Opener-Policy',
value: 'same-origin',
},
],
},
{
source: '/(.*?)worker(.*?)',
headers: [
{
key: 'Cross-Origin-Embedder-Policy',
value: 'require-corp',
},
{
key: 'Cross-Origin-Opener-Policy',
value: 'same-origin',
},
],
},
{
source: '/(.*?)sqlite(.*?)',
headers: [
{
key: 'Cross-Origin-Embedder-Policy',
Expand Down

0 comments on commit c0d8d30

Please sign in to comment.