<small id='Vz5H8'></small><noframes id='Vz5H8'>

  • <tfoot id='Vz5H8'></tfoot><legend id='Vz5H8'><style id='Vz5H8'><dir id='Vz5H8'><q id='Vz5H8'></q></dir></style></legend>

    1. <i id='Vz5H8'><tr id='Vz5H8'><dt id='Vz5H8'><q id='Vz5H8'><span id='Vz5H8'><b id='Vz5H8'><form id='Vz5H8'><ins id='Vz5H8'></ins><ul id='Vz5H8'></ul><sub id='Vz5H8'></sub></form><legend id='Vz5H8'></legend><bdo id='Vz5H8'><pre id='Vz5H8'><center id='Vz5H8'></center></pre></bdo></b><th id='Vz5H8'></th></span></q></dt></tr></i><div id='Vz5H8'><tfoot id='Vz5H8'></tfoot><dl id='Vz5H8'><fieldset id='Vz5H8'></fieldset></dl></div>
        <bdo id='Vz5H8'></bdo><ul id='Vz5H8'></ul>

      1. 从 Windows 8 JS 应用程序获取仅 HTTP cookie

        时间:2023-09-30
        <legend id='T13mZ'><style id='T13mZ'><dir id='T13mZ'><q id='T13mZ'></q></dir></style></legend>

            <small id='T13mZ'></small><noframes id='T13mZ'>

          1. <i id='T13mZ'><tr id='T13mZ'><dt id='T13mZ'><q id='T13mZ'><span id='T13mZ'><b id='T13mZ'><form id='T13mZ'><ins id='T13mZ'></ins><ul id='T13mZ'></ul><sub id='T13mZ'></sub></form><legend id='T13mZ'></legend><bdo id='T13mZ'><pre id='T13mZ'><center id='T13mZ'></center></pre></bdo></b><th id='T13mZ'></th></span></q></dt></tr></i><div id='T13mZ'><tfoot id='T13mZ'></tfoot><dl id='T13mZ'><fieldset id='T13mZ'></fieldset></dl></div>
            <tfoot id='T13mZ'></tfoot>

                  <bdo id='T13mZ'></bdo><ul id='T13mZ'></ul>
                    <tbody id='T13mZ'></tbody>

                  本文介绍了从 Windows 8 JS 应用程序获取仅 HTTP cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在制作一个 Javascript Windows 8 应用程序,用户在该应用程序中连接到我的服务器并登录.目前,我正在尝试使用 XmlHttpRequest 对象来执行此操作(特别是 WinJS.xhr),但是当我得到getAllResponseHeaders(),Set-Cookie 标头不存在(因为它是一个 Http-only cookie).

                  I am making a Javascript Windows 8 app in which the user connects to my server and logs in. Currently, I am trying to use the XmlHttpRequest Object to do so (specifically, WinJS.xhr) but when I get the output of getAllResponseHeaders(), the Set-Cookie header isn't there (because it is an Http-only cookie).

                  有没有办法从 JS Windows 8 应用程序中获取仅限 http 的 cookie?

                  Is there any way to get http-only cookies from a JS Windows 8 app?

                  非常感谢所有帮助,我总是接受答案!

                  All help is greatly appreciated and I always accept an answer!

                  推荐答案

                  事实证明,Windows 8 应用程序已经能够通过响应标头中的 XMLHttpRequest 获取仅限 HTTP 的 cookie.但是,系统会以与 iOS 相同的方式自动处理 cookie.这看起来很合乎逻辑,因为 coder 不应该负责 cookie 处理,底层框架会这样做.

                  As it turns out, Windows 8 apps are already able to get HTTP-only cookies with the XMLHttpRequest from the response's header. However, the system handles the cookies automatically in the same way iOS does. This seems very logical, since the coder should not be responsible for cookie handling, the underlying framework does that.

                  这篇关于从 Windows 8 JS 应用程序获取仅 HTTP cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:视觉工作室 2013 - Javascript 下一篇:当窗口变小时,Flex 项目不会缩小

                  相关文章

                  <i id='mVCav'><tr id='mVCav'><dt id='mVCav'><q id='mVCav'><span id='mVCav'><b id='mVCav'><form id='mVCav'><ins id='mVCav'></ins><ul id='mVCav'></ul><sub id='mVCav'></sub></form><legend id='mVCav'></legend><bdo id='mVCav'><pre id='mVCav'><center id='mVCav'></center></pre></bdo></b><th id='mVCav'></th></span></q></dt></tr></i><div id='mVCav'><tfoot id='mVCav'></tfoot><dl id='mVCav'><fieldset id='mVCav'></fieldset></dl></div>
                    • <bdo id='mVCav'></bdo><ul id='mVCav'></ul>
                    1. <legend id='mVCav'><style id='mVCav'><dir id='mVCav'><q id='mVCav'></q></dir></style></legend>
                    2. <tfoot id='mVCav'></tfoot>

                      <small id='mVCav'></small><noframes id='mVCav'>