Skip to content

Commit

Permalink
Add crossOrigin="use-credentials" for site.webmanifest
Browse files Browse the repository at this point in the history
Add `crossOrigin="use-credentials"` to the `<link>` element for `site.webmanifest` when the site is behind a proxy with authentication.
  • Loading branch information
reggiezhang authored Sep 7, 2024
1 parent 116a73d commit 5a81393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 5a81393

Please sign in to comment.