I have seen so many threads on stackoverflow with this question, only for the answers to fizzle out into something completely different to what is being asked. I know its bad practice or not standard practice to submit body with a GET request.
But this is the situation. I have an api, that takes custom headers for authorization as well as accepted data type.
The same api instead of accepting the 'productId' as a parameter as in all humanly built APIs that uses GET, this one takes the 'productId' as a json submitted in the body of the API.
{
'productId':'297552891'
}
I have tested it out in postman and it works. How can i do this with jQuery or ajax or anything javascripty from the web page?
Thanks