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
Post a Comment