Iframe in Atlassian forge custom UI

I am making an atlassian Forge app using custom UI. I want to embed an iframe. But it shows error “This content is blocked. Contact the site owner to fix the issue.”

This is my manifest permission:

permissions:
  external:
    images: 
      - 'https://i.ibb.co/Jc5YTXN/aptean.png'
    fetch:
       backend:
          - 'https://www.youtube.com'     
  content:
    styles:
      - 'unsafe-inline'

And this is how i am embedding the iframe:

<iframe style={{margin:'0px',width:'100%',height:'100%'}} src='https://www.youtube.com/watch?v=X1Jysr-K1DQ'></iframe>

what is wrong? I am a newbie. Please help.

I suppose the problem might be related to insufficient permissions. Try granting the ‘frames’ permission as well: https://developer.atlassian.com/platform/forge/manifest-reference/permissions/#frames

1 Like

lifesaver :+1:

If you find the answer helpful, please feel free to mark it as “accepted.” This will help other community members find solutions more easily and quickly.