HTTP站点到HTTPS webservice使用CORS [英] HTTP site to HTTPS webservice using CORS

查看:541
本文介绍了HTTP站点到HTTPS webservice使用CORS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网域上有一个HTML5 / JS网站,它使用asp.mvc网络服务对另一个网域上的CORS查询。

I have an HTML5/JS website on on domain, which uses an asp.mvc web service for CORS queries on another domain.

> HTTP,因为我们现在为用户特定的内容添加登录和身份验证机制,我们希望启用HTTPS。但是它只是拒绝发送选项请求到Web服务,只是给了一个中止状态。

Everything works fine with HTTP -> HTTP however as we are now adding login and authentication mechanisms for user specific content we are wanting to enable HTTPS. However it just refuses to send the options request to the web service, just gives an "Aborted" status.

我使用Firefox测试,Web服务托管在IIS7与自我证书(用SelfSSL7生成)。

I am testing using Firefox and the web service is hosted on IIS7 with a self cert (generated with SelfSSL7).

这是否有任何已知问题?我已检查:

Is there any known issues around this? I did check:

从HTTP到HTTPS的跨域请求立即中止

但是它提到的解决方案是确保证书是可信的,知识SelfSSL在调用它时使用/ T选项。

However it mentions the solution is to make sure the cert is trusted, and to my knowledge SelfSSL is doing this using the /T option when I call it. So is there anything else which needs to be changed to get this working?

推荐答案

不幸的是需要在firefox中手动设置,虽然我相信如果您手动设置配置文件配置,您可以覆盖此行为。

You will unfortunately need to manually set this in firefox, although I believe you can override this behaviour if you manually set the profile configuration.

这篇关于HTTP站点到HTTPS webservice使用CORS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆