painful-plum•3h ago
Network Error on API Request Tool
Network error: Unable to connect to the server. This could be due to CORS restrictions, the server being down, or network connectivity issues.
Request Details:
Method: GET
URL: Nextjs App deployed on vercel
Header: Using Deployment protection bypass secret
But on executing the same request on postman, responds successfully.

1 Reply
Try adding CORS headers to your Next.js API route to resolve the network error.
For example, in your API handler, add: This allows cross-origin requests and should fix CORS-related network errors when called from the API Request Tool. Source: - Server URLs Vapi Documentation
For example, in your API handler, add: This allows cross-origin requests and should fix CORS-related network errors when called from the API Request Tool. Source: - Server URLs Vapi Documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥