我一直收到以下错误"无法找到与绑定WebHttpBinding的端点匹配方案https的基址.注册的基址方案是[http]." 这开始是因为我通过添加以下内容进入基本传输身份验
<webHttpBinding>
<binding name="secureBasic">
<security mode="Transport">
<transport clientCredentialType="Basic" />
</security>
</binding>
</webHttpBinding>
Run Code Online (Sandbox Code Playgroud)
谷歌搜索后,常见的修复似乎是以下代码,但我没有成功:
<baseAddressPrefixFilters>
<add prefix="http://mywebsiteurl"/>
</baseAddressPrefixFilters>
Run Code Online (Sandbox Code Playgroud)
但是,没有任何作用.我想要的是在非https连接上使用基本的http身份验证.我没有配置什么,默认情况下它出现WCF想要强制HTTPS连接.有人碰到这个吗?