Ver Fonte

Add crossOrigin="use-credentials" for site.webmanifest

Add `crossOrigin="use-credentials"` to the `<link>` element for `site.webmanifest` when the site is behind a proxy with authentication.
Reggie Zhang há 1 ano atrás
pai
commit
5a81393863
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/layout.tsx

+ 1 - 1
app/layout.tsx

@@ -41,7 +41,7 @@ export default function RootLayout({
           name="viewport"
           content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
         />
-        <link rel="manifest" href="/site.webmanifest"></link>
+        <link rel="manifest" href="/site.webmanifest" crossOrigin="use-credentials"></link>
         <script src="/serviceWorkerRegister.js" defer></script>
       </head>
       <body>