فهرست منبع

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 [
                     {
                         // 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,
                     },
                 ];

+ 0 - 8
src/pages/_document.tsx

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