فهرست منبع

remove not needed headers

Abhinav-grd 3 سال پیش
والد
کامیت
2603bada5b
1فایلهای تغییر یافته به همراه0 افزوده شده و 22 حذف شده
  1. 0 22
      next.config.js

+ 0 - 22
next.config.js

@@ -11,18 +11,6 @@ const gitSha = cp.execSync('git rev-parse --short HEAD', {
     encoding: 'utf8',
 });
 
-// eslint-disable-next-line camelcase
-const COOP_COEP_Headers = [
-    {
-        key: 'Cross-Origin-Opener-Policy',
-        value: 'same-origin',
-    },
-    {
-        key: 'Cross-Origin-Embedder-Policy',
-        value: 'require-corp',
-    },
-];
-
 module.exports = withSentryConfig(
     withWorkbox(
         withBundleAnalyzer({
@@ -41,16 +29,6 @@ module.exports = withSentryConfig(
                     'static/webpack/[fullhash].[runtime].hot-update.json';
                 return config;
             },
-
-            async headers() {
-                return [
-                    {
-                        // Apply these headers to all routes in your application.
-                        source: '/(.*)',
-                        headers: COOP_COEP_Headers,
-                    },
-                ];
-            },
         })
     ),
     { release: gitSha }