Forum Discussion
c0d3ninja
Aug 23, 2024Copper Contributor
How to post using jquery to asp.net core api
I'm trying to develop a simple app to post to an api using jquery. I've tried multiple online suggestions and none of them work. I've even tried some of the AI code without success. I can get GET...
ardaakkaya
Aug 23, 2024Copper Contributor
Hi,
It seems like you are returning a Redirect result and trying to parse it like JSON. You should return a JSON to get results. Or you can use http status code for verifying process is done.
It seems like you are returning a Redirect result and trying to parse it like JSON. You should return a JSON to get results. Or you can use http status code for verifying process is done.