网页视图 cookie Windows 8
我尝试在 webview 控件中访问 HTTPS 页面,我需要传递 cookie 才能访问该站点。我还没有找到任何在新的 Windows 8 webview 中工作的示例。有人可以帮我弄清楚如何在页面加载之前将会话 cookie 传递到 webview 吗?
谢谢
I have tried to access an HTTPS page in a webview control where I need to pass cookie to be able to access the site. I haven't been able to find any example of it working in the new Windows 8 webview. Can somebody help me figure out how to pass a session cookie to the webview before the page is loaded?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜你在 MSDN 上也问过同样的问题。因此,为那些正在寻找答案的人发布链接。
http://social.msdn.microsoft.com/Forums/br/winappswithcsharp/thread/05e46a0a-e913-469d-a4a5-4a805dcf158a
另一方面,如果该项目基于javascript/html,那么我自己的经验是:不,目前没有办法做到这一点。我在一个类似的 javascript 地铁项目中,必须使用 iframe 发出请求并使用 postMessage 来解决问题。
I guess you asked the same question on MSDN. So posting the link here for those who is looking for the answer.
http://social.msdn.microsoft.com/Forums/br/winappswithcsharp/thread/05e46a0a-e913-469d-a4a5-4a805dcf158a
On the other hand, if the project is based on javascript/html, then my own experience is: No, there is no way to do that at this point. I was on a similar javascript metro project and had to use iframe to make the request and postMessage to work things around.