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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Dec 21, 2020, 9:28 AM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Dec 21, 2020, 9:02 AM EST
Harsh ShahRank #1,322 · 1.3K reputationPosted Dec 22, 2020, 11:09 PM EST
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.