ASP.NET Core Web API | Post Method Issue from Browser Only
Budget: $2 – $8 USD
I have created ASP.NET Core Web API with Framework .Net 6.0. My project only needs to handle POST requests through a web browser using [FromQuery] approach.
I have created the project successfully in VS 2022 and I can post from POSTMAN but not through a web browser. I read a lot about the issue and it seems something with "Microsoft.AspNetCore.App" which has already been installed with version "2.1.1". Moreover, I have added some lines in the startup configuration services but seam still an issue there as I got some yellow triangle in the dependencies and it seems something with the compatibilities.
I tried to recreate the project in VS 2017, same issue but at least no warrings or any issue with compatibilities. Still the project didn't work in a web browser but it works as expected in POSTMAN.
I will be uploading a copy of my controller along with the class and startup file. My requirements will be as the following "Fix the current issue and make the Web API can be called over both POSTMAN and any web browser".
I have created the project successfully in VS 2022 and I can post from POSTMAN but not through a web browser. I read a lot about the issue and it seems something with "Microsoft.AspNetCore.App" which has already been installed with version "2.1.1". Moreover, I have added some lines in the startup configuration services but seam still an issue there as I got some yellow triangle in the dependencies and it seems something with the compatibilities.
I tried to recreate the project in VS 2017, same issue but at least no warrings or any issue with compatibilities. Still the project didn't work in a web browser but it works as expected in POSTMAN.
I will be uploading a copy of my controller along with the class and startup file. My requirements will be as the following "Fix the current issue and make the Web API can be called over both POSTMAN and any web browser".