Torrent Viewer CSP rule blocks <iframe> content
Torrent Viewer CSP rule blocks <iframe> content

Torrent content is rendered into <iframe> when it's not video or audio
content. For example, a .jpg or a .pdf file. This is because we're
using a viewer page that includes the content; we're not returning the
content directly.

This is because the torrent may not be active and in that case, we show
the "Start Download?" page.

When this occurs, CSP prevents the iframe from loading content from the
webtorrent server at http://localhost:port

This is because we only make a CSP exception for media elements, not
iframe elements. This is an easy fix.

Fixes: https://github.com/brave/browser-laptop/issues/7243

luixxiul/browser-laptop,luixxiul/browser-laptop,diasdavid/browser-laptop,diasdavid/browser-laptop,diasdavid/browser-laptop,timborden/browser-laptop,timborden/browser-laptop,timborden/browser-laptop,diasdavid/browser-laptop,luixxiul/browser-laptop,timborden/browser-laptop,luixxiul/browser-laptop