Not sure if this is the right place to post this but I ran into the following issue trying to use the credentialless attribute with Twitter tweet embeds:
The iframes in this case are created by an external script (https://platform.twitter.com/widgets.js) which of course doesn't add the credentialless attribute. There is an event mechanism to run code when a tweet is rendered but it only triggers after the tweet is added to the DOM which appears to be too late.
I guess one kinda ugly workaround would be to do the tweet embedding inside a credentialless iframe but that's not really a great solution.
Ideally, there would be some way to say "please make all iframes credentialless", presumably via an HTTP header. This also would solve the issue of having to add the attribute to all iframes.
Not sure if this is the right place to post this but I ran into the following issue trying to use the
credentiallessattribute with Twitter tweet embeds:The iframes in this case are created by an external script (https://platform.twitter.com/widgets.js) which of course doesn't add the
credentiallessattribute. There is an event mechanism to run code when a tweet is rendered but it only triggers after the tweet is added to the DOM which appears to be too late.I guess one kinda ugly workaround would be to do the tweet embedding inside a
credentiallessiframe but that's not really a great solution.Ideally, there would be some way to say "please make all iframes
credentialless", presumably via an HTTP header. This also would solve the issue of having to add the attribute to all iframes.