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

Starting Nashi #3

Open
jpb-badw opened this issue Jan 4, 2021 · 1 comment
Open

Starting Nashi #3

jpb-badw opened this issue Jan 4, 2021 · 1 comment

Comments

@jpb-badw
Copy link

jpb-badw commented Jan 4, 2021

I've cloned all the files from github to the computer. The instructions state that to use the file protocol Firefox must be utilized. I've tried to reach it but whenever I give in the protocol plus the path to Nashi, the page stays blank and nothing happens. Is there a step that's missing?

@andbue
Copy link
Owner

andbue commented Jan 4, 2021

Hi, you're trying to just use the plain html file, not the flask server, right? As in: demo

I think it fails due to CORS issues, somehow Firefox also dropped the support for loading local files. As a quick workaround you could use your own web server:

  1. cd to the nashi directory (or any directory containing nashi.html, some PAGE XML files and corresponding images)
  2. python -m http.server 8877 (or php -S localhost:8877...)
  3. In Firefox, go to http://0.0.0.0:8877/nashi.html?pagexml=Test.xml&direction=ltr

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