Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working locally due to inability to load .json file of certificates #2

Open
jumpjack opened this issue Nov 4, 2021 · 1 comment

Comments

@jumpjack
Copy link

jumpjack commented Nov 4, 2021

The app does not work if run locally, due to inability to load certificate using file:/// protocol; but certificates are not necessary to view the data, of course they are only needed to validate signature.
I would like to modify the source by myself, but in src folder I can't find index.html, so I don't understand how the app works.

@floysh
Copy link
Owner

floysh commented Nov 5, 2021

This is by-design a feature of the Fetch API, which is what I use to retrieve external .json files (you generally don't want websites to gain access to your personal files transparently). I think you've got a point about the breaking errors when validation fails, and it's something I'm definitely going to work on :)

If you want to run this app locally, just start a local webserver at the public folder. Once the server is running, launch npm run watch to automatically pack everything in src/ to public/bundle.js as you edit the code nd reload the page to see changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants