I have a method like this:
[WebGet(UriTemplate = "/")]
[OperationContract]
public XmlElement All() {}
Is there a way to force clients to always use HTTPS? (deny HTTP and allow only HTTPS)?
If yes, how?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is IIS configuration.
When you’re creating the IIS website to host the WCF service, you would set the bindings on it to only respond on the SSL socket.
Furthering that, you can set up IIS to force redirects from http://www.example.com to https://www.example.com
Here’s a tutorial: http://learn.iis.net/page.aspx/144/how-to-set-up-ssl-on-iis/