Most of my APIs are returning 400 bad request error while being called on frontend
My GET requests were not working because I was sending content-type: "application/json" in headers which was not required. Now its working fine.
My API code is in python. It is hosted and works perfectly when called through postman. But when I try calling the same calls through my frontend react application, most of them respond 400 Bad request. Any idea as to why is this happening?
My application uses amazon cognito for authentication.