网页视图 cookie Windows 8

发布于 2024-12-23 14:30:05 字数 147 浏览 3 评论 0原文

我尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浪漫之都 2024-12-30 14:30:05

我猜你在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文