Read the cookies from a support person?

I would like to read the cookie in my service worker so that I can use it to configure my caches, but I cannot find a way to do this.

Is there a way to do this, or will I need to duplicate cookie data in an IDB or similar?

+4
source share
1 answer

You cannot access them at this time. There's a discussion in the W3C ServiceWorker repository about adding methods to access them in the future.

+8
source

Source: https://habr.com/ru/post/1244086/


All Articles