Skip to content

Fetch API cannot load file #2

@thadeuszlay

Description

@thadeuszlay

Hi,

I get this error when running the code:

scripts.js:6 Fetch API cannot load file:///path/to/my/dir/wasm/sampelProject/squarer.wasm. URL scheme must be "http" or "https" for CORS request.
loadWebAssembly @ scripts.js:6
(anonymous) @ scripts.js:14
scripts.js:6 Uncaught (in promise) TypeError: Failed to fetch
    at loadWebAssembly (scripts.js:6)
    at scripts.js:14
loadWebAssembly @ scripts.js:6
(anonymous) @ scripts.js:14
Promise.then (async)
(anonymous) @ scripts.js:14

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