Accessing cookies from a chrome app

前端 未结 2 474
离开以前
离开以前 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 10:53

    Cookies is apparently a dark area of Chrome Packaged Apps.

    With Extensions, the extension shares the cookie jar with normal browsing activities. For Packaged Apps, each app has a separate jar.

    The current behaviour seems to be that XHR requests to sites specified in the manifest in the permissions section do set cookies in this jar but there is no way how to get rid of them, except reinstalling the app. There is no API for Packaged Apps to manage cookies and their cookies do not show in Developer tools or about://settings/cookies page.

    the crbugs include

    https://code.google.com/p/chromium/issues/detail?id=70391 https://code.google.com/p/chromium/issues/detail?id=152758 https://code.google.com/p/chromium/issues/detail?id=157474

    and these two issues filled in response to this SO question

    https://code.google.com/p/chromium/issues/detail?id=236585 https://code.google.com/p/chromium/issues/detail?id=335934

提交回复
热议问题