在 Flex 应用程序中从 HTTP 切换到 HTTPS
我正在构建一个 FLEX Web 应用程序,它还有一个支付模块,用户需要在其中输入他的信用卡详细信息。
整个 Flex 应用程序在 HTTP 上运行。但是,每当用户登陆我们要求提供信用卡详细信息的页面时,我们都希望通过 HTTPS 发送这些详细信息。 在此页面中,我们需要来自应用程序模型的信息,因为它包含用户所做的某些选择、应用程序所处的状态等。
我怎样才能最好地解决这个问题? 我需要将此页面设为在 HTTPS 上运行的模块吗? 或者我可以只配置特定的“信用卡”服务(我们有一个 JAVA 后端)以便这些服务在 HTTPS 上运行吗?
任何帮助表示赞赏。 谢谢!
I am building a FLEX web application that also has a payment module where the user needs to enter his credit card details.
The whole Flex application runs on HTTP. However, whenever the user lands on a page where we ask for credit card details, we want these details to be sent over HTTPS.
In this page we need information from the model of the application, because it holds certain selection the user did, the state the application is in, etc.
How can I best solve this?
Do I need to make this page a Module that runs on HTTPS?
Or can I just configure the specific 'credit card' services (we have a JAVA back end) so that these run on HTTPS?
Any help is appreciated.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您尝试向 https://foo.com 发出请求时,您将遇到浏览器同源策略的问题从 http://foo.com 加载的应用程序。我建议将应用程序和服务放在 https 上。但是,如果您这样做,请确保您使用的是 Flex Framework RSL,因为大多数浏览器不会缓存通过 https 加载的 SWF。
You will run into issues with the browser's same-orgin policy when you try to make requests to https://foo.com from an application loaded from http://foo.com. I'd recommend just putting the application and services on https. However if you do that make sure you are using the Flex Framework RSLs because most browsers don't cache SWFs loaded over https.