Read cookies from within a Service Worker?

后端 未结 1 1364
囚心锁ツ
囚心锁ツ 2020-12-10 16:30

I would like to read a cookie within my service worker to use it when setting up my caches, but can\'t find any way of doing it.

Is there any way of doing that, or w

相关标签:
1条回答
  • 2020-12-10 17:25

    Currently, you can't access them. There's a discussion in the W3C ServiceWorker repo about adding methods to access them in the future.

    0 讨论(0)
提交回复
热议问题