We have configured Sitecore security on items for the roles and seeing the sensitive data in the browser logs. We have a custom error page which interrogates the return codes(403/404/ or any other) and redirect to an item.
Assume two roles : Admin and customer.
If there are two items:
Item1 - Admin and Customer have read access
Item2 - Only Admin has access
When customer tries to access Item2 then Sitecore is redirecting to 403 as expected and the browser url is https://mywebsite.com/error.aspx?code=403. However when I see the browser network tab I see this : https://mywebsite.com/error.aspx?code=403&item=2fitemname&user=username&site=sitename
Is there any way to hide the highlighted information(item/user/site)?