How Can i Hide ID in url with asp.net mvc core .
http://localhost:7387734/UserManagement/UserViewProfile?Id=30 --- This is my my url
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Dec 21, 2020, 2:28 PM
Harsh ShahPosted Dec 23, 2020, 4:09 AM
Use POST instead of GET calls to remove parameters from the URL.
You will still be able to see the parameter in the request message.
The only way to safely hide the parameter is to encrypt it.
Rajeesh MenothPosted Dec 21, 2020, 2:02 PM