79791793

Date: 2025-10-16 05:21:42
Score: 1.5
Natty:
Report link
YouTube iFrame Doesn’t Load in VS Code WebView

Option 1

Update WebView’s Content Security Policy (CSP)
<meta http-equiv="Content-Security-Policy" content="
  default-src 'none';
  img-src https:;
  media-src https:;
  script-src 'none';
  style-src 'unsafe-inline';
  frame-src https://www.youtube.com https://www.youtube-nocookie.com;
">

Option 2 
<a href="${this._currentVideoUrl}" class="video-link" target="_blank">
    
</a>

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: BR_