Can I fool HttpRequest.Current.Request.IsLocal?

前端 未结 4 1766
-上瘾入骨i
-上瘾入骨i 2021-02-08 07:44

I\'m running a web application that displays some debugging behavior if it\'s being run locally - quotes around resource strings, etc - and I\'d like to demo the application on

4条回答
  •  臣服心动
    2021-02-08 08:30

    That would require spoofing a non-local IP address in requests to your local instance of IIS. I think you'd probably spend less time just making a demo build than trying to make that work.

提交回复
热议问题