This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: #7243
- Loading branch information