Hello, I am running into a huge issue here. I am working with a payment processor and have to receiver a post request into my application page in my web site. The problem is that angular 5 route doesnt accept post request. Didnt know that. Has aspnet Zero found a way to manage this problem? Dude I've never seen anything about this limitation on angular 5 man that sucks like hell.
Please help
5 Answer(s)
-
0
Dude I've never seen anything about this limitation on angular 5
Same explanation as How to receive POST request in an AngularJS page?
Has aspnet Zero found a way to manage this problem?
You should post to your remote service instead of your app.
-
0
Has aspnet Zero found a way to manage this problem?
You should post to your remote service instead of your app.[/quote]
I though about this but the problem is that I need to display a result to the end user. How do I do that from a service
-
0
You can post to a controller in *.Web.Host project, and then return Content("") or return Redirect("") to your Angular app.
-
0
<cite>aaron: </cite> You can post to a controller in *.Web.Host project, and then return Content("") or return Redirect("") to your Angular app.
I tried that but it is redirecting me to login/home systematically. You what I will just create another .Net Core App for that. It is the simple way to do this.
Thanks a lot for your help
-
0
hi,
create a new controller for your payment system. and add [AbpAllowAnonymous] tag to it. So that it can bypass the authorization check.
<a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Authorization#suppress-authorization">https://aspnetboilerplate.com/Pages/Doc ... horization</a>