ASP.NET MVC Error Handling - Remove aspxerrorpath

前端 未结 5 1486
别那么骄傲
别那么骄傲 2020-12-30 22:45

I\'m working on some error handling in my MVC app, and I\'d like to change asperrorpath to something that doesn\'t give away the fact that I\'m using .NET... so

5条回答
  •  执笔经年
    2020-12-30 23:31

    Just add dummy query string to your .htm pages as below.

    
          
    
    

    Check with fiddler, the asperrorpath query string does not appear anymore and referrer of errorpage.htm is completely clean.

提交回复
热议问题