Skip to content

CSP issues on Chrome 130+ #23

@MJBlack9000

Description

@MJBlack9000

When loading blank.org I'm greeted with a blank page and a console error:

content-script-loader.main.tsx.js:7 Refused to load the script 'chrome-extension://34ce7500-db6a-4957-a6e7-4b14953e21d6/assets/main.tsx-M-XeBlDr.js' because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules' http://localhost:* http://127.0.0.1:*". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Workaround:
set "use_dynamic_url": false in dist/manifest.json

As far as I've gathered, there's no simple way to just tell crxjs to set "use_dynamic_url" to false. But I could be wrong, and I only did limited amount of research

Some helpful references:
crxjs/chrome-extension-tools#918
pnd280/complexity#7

P.S. Thank you for this project. A very useful out-of-the-box solution, nvm the bug above.

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