Asp.net Core web Api with React app client 404 on browser refresh
Hi community, I'm facing a asp.net core web api routing issue. found some solutions on the internet but those looks not working. Below are some details about my api and client side.
basically, we have our client as react app in client folder and asp.net core web api inside server folder. Both these are hosted using IIS.
client and serer has their own web sites. www.mysite.com/index.htm (client/index.htm) and www.mysite.com/api (server/program.cs)
the problem is that on hosted env, when we nagivate to a different route than / i.e /person it works fine. but it we refresh from browser it gives 404 error.
saw some ways to setup router in web.config. did that but still getting 404 for routes other than /.
any help or direction is appriciated. :-).
1 Reply
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View