WebHttpBinding with Http and Https

前端 未结 4 2066
予麋鹿
予麋鹿 2021-02-19 21:29

I am trying to use https & http for the website. The website has .svc files which act as REST service and called from JavaScript.

My Config:



        
4条回答
  •  独厮守ぢ
    2021-02-19 22:03

    I've recreated your scenario and used your web.config to configure endpoints for my test service. Your configuration is ok and works correctly. The part that don't works for you is probably your https configuration in IIS. Make sure you have enabled https access to your service. If you test it with IISExpress from Visual Studio then left click on your project and in the properties window (View -> Properties Window ) select for SSL Enabled = True.

提交回复
热议问题