Re:Google no longer providing original URL in AMP for image ...
by seph-reed on Thursday May 28, 2020 @12:32PM
(#23339251)
Here'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.
Blocking third party cookies by default and requiring requests for storage access all sounds great.