PeWu / topola-viewer

Topola Genealogy Viewer – interactive genealogy visualization
https://pewu.github.io/topola-viewer
Apache License 2.0
196 stars 49 forks source link

Gramps / Interactive Family Tree / net::ERR_BLOCKED_BY_CLIENT #82

Open johnjohndoe opened 2 years ago

johnjohndoe commented 2 years ago

I am trying to visualize my Gramps project via the plugin by launching the "Interactive Family Tree" in order to render images. Showing images seems not to be possible when launching the viewer locally as a standalone application.

I do not understand if the launched website should be able to load the data and images just by itself or whether I have to do something. I read in the related issues that CORS is important but that is addressed in the URL. I also read about serving the *.ged file from a public web server. I tried that, too - which resulted in different errors. It would be great if someone could clarify how exactly the Gramps plugin is supposed to work. Thank you!

How to reproduce

  1. Start Gramps 5.1.2
  2. Select Tools / Analysis and Exploration / Interactive Family tree...
  3. The default browser (Brave) opens the following website:
    https://pewu.github.io/topola-viewer/#/view?utm_source=gramps&handleCors=false&standalone=false&url=http://127.0.0.1:8156/

Observed behavior

Expected behavior

Related

PeWu commented 2 years ago

Thanks for the report. The issue here is that Brave by default blocks access to localhost connections. See e.g. here: https://github.com/brave/brave-browser/issues/15004 So, to make the Topola Viewer work in the Gramps addon mode, you'd have to allow it to access localhost.

johnjohndoe commented 2 years ago

:+1: Nice. Thank you. For some reason I did not try another browser. It works fine with Firefox!

Maybe you still want to mention this in the README and Gramps wiki. It could be a big initial blocker for people to use your tool.

Other than that this issue can be closed.