Hello folks, I am working on a project where we ha...
# random
s
Hello folks, I am working on a project where we have implemented SAML based azure authentication using react and axios on the front end and springboot on the backend.The issue on which I am currently blocked is all my GET api calls are running perfectly and fetching data from the backend but POST requests are getting converted to GET (able to see it in network tabs in browser) and is responding with "GET requests not supported error" . I tried looking for solutions online but none of them seem to work.Strangely the POST calls are working fine when tested with POSTMAN .Please help if anyone has any idea on this
b
Are you mistakenly using
http
instead of
https
? The only time I have faced something similar is due to the backend enforcing
https
by redirecting all
http
requests as
GET
requests.
s
I am trying this in my local so both backend and front end are running on http
d
I remember something similar happened with me. My issue was trailing slash related. Can you try that?
s
tried that as well...still doesn't work
c
Is the browser sending an OPTIONS request before you POST? If yes, what are the allowed methods returned in the response to the OPTIONS request?