标签: asp.net-mvc model-view-controller http ssl https
我有一个通常从javascript函数触发的控制器方法。但是,我并不想强迫每个人都使用ssl。我是否可以同时允许http和https流量?
示例:
http://analytics.site.com/visit/new?blah=blahblah
https://analytics.site.com/visit/new?blah=blahblah
答案 0 :(得分:0)
你可以这样做
[Https]
//analytics.site.com/visit/new?blah=blahblah
而不是