How do I add attributes to an iFrame? For example, I want to add the 'referrepolicy' attribute to C3's iFrame object so that I achieve the following:
<iframe referrerpolicy="strict-origin-when-cross-origin">
For context, I have a mobile App that displays YouTube videos that has worked perfectly for a number of years. I've recently been getting reports that users are seeing a YouTube '153' error and the video will not play. However, this seems to be quite random and intermittent and I've not yet seen the error on any of my test devices.
A Google search reveals other developers having similar problems over the last 2 months and the suggested work-around is to replace 'youtube.com' with 'youtube-nocookie.com' in the URL and to add the referrerpolicy="strict-origin-when-cross-origin" attribute.
Thanks,
Steve.