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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -