Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

CSP unsafe-eval for ghc_jsffi #33

@alebon

Description

@alebon

I was playing around with the examples because I was interested in replacing some of my chrome extensions with one of the Haskell frameworks (Miso or Reflex).
But with both, I ran into the problem that the generated post link JS contains eval and new Function as soon as one of the Frameworks is used via JSFFI.
Unfortunately this requires unsafe-eval, which is not allowed for chrome extensions.

Is there a way to work around this?

(I tested as well Rust (leptos) apps with the wasm file, which works just fine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions