Skip to content

website hard to test locally; it requires a webserver. (problem when using file URIs) #10

@SomberNight

Description

@SomberNight

The html files cannot be easily tested in a browser locally.
The website is broken when using the file:// protocol; it works when using http://,
so the workaround is to run a webserver locally.

Firefox (87.0) logs:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///.../electrum-web/panel-download.html. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///.../electrum-web/projects.json. (Reason: CORS request not http).

See https://developer.mozilla.org/en-US/docs/Archive/Misc_top_level/Same-origin_policy_for_file:_URIs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions