Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Receiving post request into my angular 5 /.Net core web site #5042


User avatar
0
squaresunion created

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)
  • User Avatar
    0
    aaron created
    Support Team

    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.

  • User Avatar
    0
    squaresunion created

    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

  • User Avatar
    0
    aaron created
    Support Team

    You can post to a controller in *.Web.Host project, and then return Content("") or return Redirect("") to your Angular app.

  • User Avatar
    0
    squaresunion created

    <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

  • User Avatar
    0
    alper created
    Support Team

    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>