by readarticle · 6y ago · 0 comments
Blocking third party cookies by default and requiring requests for storage access all sounds great.
window.onmessage = function(e) {
if (
/^https?:\/\/((subdomain)\.)?mysite.com/.test(e.origin) === false
) {
console.error("Access: No auth");
return;
}
}
If you could specify what the benefit over this approach is, I'd appreciate knowing.