POST API endpoint only working if request made from POSTMAN
I am developing an app which needs to send information to an endpoint another client has put online to receive POST requests. This is just a simple POST request I send with a body, then the client saves its body to wherever he wants to. This endpoint has no Authorization header as it has been removed recently due to thinking it might be the cause for it not to work. So, now, it only works if you do the request from Postman.
I created a simple Expressjs server and deployed on Vercel to mock that client endpoint for testing purposes (just returns the req.body to the client)
I deployed my main project on Vercel and made POST requests to my mock Express app. Works.
I deployed my main project on AWS Amplify and made POST requests to my mock Express app. Works.
But when I try to attack the original endpoint URL the client has put online, it just does not work. It returns a 404 status everytime. But not from Postman (200 status). I just don't get it... maybe I am malforming the requests? I just want to be really sure the issues is not on my end.
My code is part of a
I created a simple Expressjs server and deployed on Vercel to mock that client endpoint for testing purposes (just returns the req.body to the client)
I deployed my main project on Vercel and made POST requests to my mock Express app. Works.
I deployed my main project on AWS Amplify and made POST requests to my mock Express app. Works.
But when I try to attack the original endpoint URL the client has put online, it just does not work. It returns a 404 status everytime. But not from Postman (200 status). I just don't get it... maybe I am malforming the requests? I just want to be really sure the issues is not on my end.
My code is part of a
create-t3-app stack that uses tRPC first to fetch information from my PlanetScale DB and then makes a POST request to that endpoint: