Accessing cookies from a chrome app

前端 未结 2 456
离开以前
离开以前 2021-01-02 10:45

I can see that when I issue an xhr from my chrome app that it sends some cookies, and these cookies are kept track of in the app. Servers sending set-cookie headers are upd

2条回答
  •  既然无缘
    2021-01-02 11:02

    I had a similar issue where security restrictions on XHR in a packaged app with chrome.socket api permission seemed overbearing. See Setting "unsafe" headers in packaged app XHR

    I ended up creating a "shim" xhr object for my use case, though it doesn't handle e.g. chunked encoding. You might find it useful: https://github.com/kzahel/jstorrent/blob/fresh/js/chromesocketxhr.js

    I ended up filing a bug on crbug: https://code.google.com/p/chromium/issues/detail?id=335934

提交回复
热议问题