<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

        Get HTTP-only cookie from Windows 8 JS App(从 Windows 8 JS 应用程序获取仅 HTTP cookie)
        <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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)
                  getFullYear returns year before on first day of year(getFullYear 在一年的第一天返回前一年)

                    <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>
                          <tbody id='mVCav'></tbody>
                          <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'>