4 ms·
What's wrong with Safari?
by schnable 6y ago
What's wrong with Safari?
- seph-reed 6y agoThis month? https://gist.github.com/iansltx/18caf551baaa60b79206#gistcomment-3251085 https://gist.github.com/iansltx/18caf551baaa60b79206#gistcom...
- readarticle 6y agoThe only issue there is developers not being able to keep up with the rapid pace at which Safari is still strengthening privacy protection even in the middle of a pandemic, as far as I can tell. Blocking third party cookies by default and requiring requests for storage access all sounds great.
- seph-reed 6y agoHere's the code to keep your iframe from being abused: 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.