Storage Access API

Tags
webapi
Created
Feb 23, 2018 6:10 AM

https://webkit.org/blog/8124/introducing-storage-access-api/

Intelligent Tracking Prevention (ITP) 能阻止第三方网站 cookie 的访问(Partitioned Cookies),除非最近 24 小时内以第一方的方式访问过。

但这样会影响用户使用体验,比如评论需要重新登陆。

当网站作为第三方时,Storage Access API 能允许访问作为第一方的 cookies。

The Storage Access API offers two new functions to cross-origin iframes — document.hasStorageAccess() and document.requestStorageAccess(). It also offers the embedding top frame a new iframe sandbox token — “allow-storage-access-by-user-activation”.

SuperMade with Super