asp.net - Enforce SSL in code in an ashx handler -


i have site, contains several ashx handlers, on couple of handlers want reject non-ssl requests. there way can in code?

if must programmatically, way i've done in past inspect url , "https" in it. redirect if don't see that. request.issecureconnection should preferred method, however. may have add additional logic handle loopback address.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -