浏览代码

set header only in gallery

Abhinav-grd 3 年之前
父节点
当前提交
f7af8b5c2d
共有 2 个文件被更改,包括 1 次插入13 次删除
  1. 1 5
      next.config.js
  2. 0 8
      src/pages/_document.tsx

+ 1 - 5
next.config.js

@@ -46,11 +46,7 @@ module.exports = withSentryConfig(
                 return [
                 return [
                     {
                     {
                         // Apply these headers to all routes in your application....
                         // Apply these headers to all routes in your application....
-                        source: '/(.*)',
-                        headers: COOP_COEP_Headers,
-                    },
-                    {
-                        source: '/_next/static/chunks/:any',
+                        source: '/gallery',
                         headers: COOP_COEP_Headers,
                         headers: COOP_COEP_Headers,
                     },
                     },
                 ];
                 ];

+ 0 - 8
src/pages/_document.tsx

@@ -55,14 +55,6 @@ export default class MyDocument extends Document {
                         name="apple-mobile-web-app-status-bar-style"
                         name="apple-mobile-web-app-status-bar-style"
                         content="black"
                         content="black"
                     />
                     />
-                    <meta
-                        httpEquiv="Cross-Origin-Opener-Policy"
-                        content="same-origin"
-                    />
-                    <meta
-                        httpEquiv="Cross-Origin-Embedder-Policy"
-                        content="require-corp"
-                    />
                 </Head>
                 </Head>
                 <body>
                 <body>
                     <Main />
                     <Main />