Skip to main content

Bug or security issue with IFRAME code?

  • February 11, 2023
  • 3 replies
  • 44 views

MrLuke
Forum|alt.badge.img+7

I'm using the YouTube API to scrape video data via the script extension and populate the Airtable. This all works fine until I try and take the "embedCode" parameter for a video to store in the table. Other HTML works fine, but as soon as the `<iframe>` tag is entered, the table throws and error and wants me to refresh it. Doesn't matter if the cell is short text or long text with or without rich text enabled.

Is this a bug or some security related issue?

Here's the embed code it grabs that causes the error:

 

<iframe width="560" height="315" src="https://www.youtube.com/embed/654laEgXb7k" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

 

 

 

3 replies

William_Nutt
Forum|alt.badge.img+14
  • Known Participant
  • 23 replies
  • March 31, 2023

I have the exact same issue. Any time I have an iframe represented in my script, even divided into concatenated strings, I get the error. Quite disruptive.


MrLuke
Forum|alt.badge.img+7
  • Author
  • Inspiring
  • 18 replies
  • April 3, 2023

I have the exact same issue. Any time I have an iframe represented in my script, even divided into concatenated strings, I get the error. Quite disruptive.


I never found a way to fix this, and so have just had to exclude it from my Airtables. Quite annoying really.


William_Nutt
Forum|alt.badge.img+14
  • Known Participant
  • 23 replies
  • April 3, 2023

I never found a way to fix this, and so have just had to exclude it from my Airtables. Quite annoying really.


I ended up using Zapier for the actions requiring iframes.