Skip to content

Appending an iframe in ContentScript causes a Content Security Policy error. #139

@chengfengfengwang

Description

@chengfengfengwang
// contentScript.ts
const freamUrl = chrome.runtime.getURL('src/entries/fream/index.html');
const ifream = document.createElement('iframe');
ifream.src = freamUrl;
document.body.appendChild(ifream)

The above code cause CSP error:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions