This repository was archived by the owner on Dec 20, 2024. It is now read-only.
Allow some paths to bypass password protection #414
Locked
ericmatthys
started this conversation in
Idea
Replies: 0 comments 2 replies
-
|
You can create your own custom password protection with Middleware. https://github.com/vercel/examples/tree/main/edge-functions/basic-auth-password |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It is difficult to have a fully functional staging environment with password protection enabled, because password protection can interfere with some features. Native deep linking is one that is not possible in our staging environment because password protection on
/manifest.jsonand/.well-known/apple-app-site-associationinterferes with native mobile apps handling deep links. I've also had issues with cross-origin API route requests. We have two sites deployed from a monorepo and it is not possible for site A to make an API request to site B while password protection is enabled on site B. The CORS preflight ends up blocked. Disabling password protection fixes the issue. Being able to bypass password protection on all/api/*routes would allow the issue to be worked around while keeping password protection enabled.Beta Was this translation helpful? Give feedback.
All reactions