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.
For Ex:
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)?
<setting name="RequestErrors.UseServerSideRedirect" value="true"/>
and see if that fixes your issue? I don't have a Sitecore running now to check if it works