update: it still uses the cookies thing lmao
by the way this train of thought was prompted by this http 203 episode https://www.youtube.com/watch?v=9UNwHmagedE&list=PLNYkxOF6rcIAKIQFsNbV0JDws_G_bnNo9&index=13
the modern way to do this would be with a serviceworker passing messages around. the utopic future way to do it if/when safari supports it is BroadcastChannel
@codl I'll tell them I found a cool way we can move all of our inherited graphql queries into innocuous looking network traffic to a keep-alive endpoint by embedding the queries in cookies. they'll go apeshit.
@ben there wasn't at the time i first found this (which is why it was impressive)
also it is still not exactly straightforward
@codl So they key is to call window.parent.postMessage, which allows you to send the message from the iframe to the document load embeds the iframe?
I'm still trying to get my head around why this isn't a security problem.
Chitter is a social network fostering a friendly, inclusive, and incredibly soft community.