Manifest file - 401 unauthorized #62867
Replies: 7 comments 2 replies
-
I am having the same issue. I think I am going to try and resolve it with a vercel.json in the root of my project. There is a good article about the 401 here -> https://medium.com/@aurelien.delogu/401-error-on-a-webmanifest-file-cb9e3678b9f3 It has to do with permissions set in the CORS OR, this is what I am going to look at |
Beta Was this translation helpful? Give feedback.
-
@bart-sofomo were you able to resolve the issue? |
Beta Was this translation helpful? Give feedback.
-
@bart-sofomo Did you resolve it? I'm facing the same issue on production |
Beta Was this translation helpful? Give feedback.
-
The error also exists with static files, not just the dynamic version. Edit: as for now I've solved it by extending the metadata object from the root layout.jsx and specifying the contents of the manifest.json as base64 encoded data:
|
Beta Was this translation helpful? Give feedback.
-
it happened to me behind a caddy reverse proxy with enabled |
Beta Was this translation helpful? Give feedback.
-
I discovered the issue was due to Vercel Authentication in the project settings. When enabled on preview deployments, it blocks access to static files like your manifest and icons, causing 401 errors. Disabling authentication fixes it, and production isn’t affected. |
Beta Was this translation helpful? Give feedback.
-
I went to hosting the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running nextjs project with next-auth. Using https://nextjs.org/docs/app/api-reference/file-conventions/metadata/manifest no matter what I'm trying I'm getting 401 unauthorized on vercel preview for manifest file.
It seems like there is no ability to add crossorigin="use-credentials" on manifest file.
This does not happen locally - only on vercel.
Any idea on how could I fix this?
Beta Was this translation helpful? Give feedback.
All reactions