Authentication required to call my API

Hey guys! Hope this message finds you well

I am struggling with one of my Vercel deployments, i just paid the Pro plan and deployed on a new custom env called Staging. However, when I try to make a simple API call to one of the endpoints on Staging it returns me a 401 Unathorized response. When I try the same call in my production environment it works (The route does not need any auth to acess is just a simple endpoint).

I thinks this is some kind of protection from Vercel to the pre-prod envs, but I don’t know how and where to disable it, i need to test my APIs from my Postman in the staging env.

After some tests i see that i can only acess this deployment when i pass through some kind of auth from Vercel, so i guess this might be blocking the API calls from Postman, but still, cannot find a way to turn this off.

It sounds like Deployment Protection is turned on for the project and blocking unauthenticated access to your staging environment. We have a few options you can use to bypass it: Methods to bypass Deployment Protection

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.