samedi 20 juillet 2019

Deploy asp .net core app on Linux - redirect url problem

I'm now during deploy asp .net core mvc app on Linux and one thing is very confused for me.

So on main page Home/Index I have buttons to adding products to cart and I do that by data-url with @Url.Action where I declare controller, action and some args.

On Windows both on local environment and remote server everything work ok, so in the Request Url I can see in my case:

http://domain/Cart/AddToCart?some_args

Request Method is GET and Status Code is 302 Found and in Response Header I get Location to next action to do.

But on Linux instead correct Request Url I get everytime:

http://domain/Home/Index

.. and no action is done.

I tried by nginx and now I'm trying on Docker platform, but effect is the same - redirect url not working..

Aucun commentaire:

Enregistrer un commentaire