Skip to content

Extension Content Security Policy violation #134

@Brendon-Hablutzel

Description

@Brendon-Hablutzel

While working on implementing static routing in the extension, I encountered the following error:

Refused to load the script 'chrome-extension://dd22fb34-def7-4d8a-8ad8-703ab09681c4/inject.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.

A screenshot is shown below:

Screenshot from 2024-11-08 10-28-51

I first encountered the error using the code at this commit, but the error persisted even when I reverted back to this earlier commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExtensionExtension TicketsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions