nodeSolidServer / solid-auth-client

A browser library for performing authenticated requests to Solid pods

Home Page:https://solid.github.io/solid-auth-client/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The problem of "Error: Could not connect to main window." alert message

peter279k opened this issue · comments

Hi all developers, I also try to use the solid authentication client to let the Solid App get the access token.

But I also got this alert message. My reproducing issue approaches are as follows:

  • Visiting the Solid App.

image

I assume that it already has a Pod account then click the "登入" button.

It will present the popup windows and the captured shot are as follows:

image

(Noticing that the electric-data-pod.com domain is my local DNS mapping, and this domain has not registered yet.)

  • Then clicking Log in button on popup window. And it will present this alert message I mention on this issue title.

image

  • If I change the popup target https://electric-data-pod.com:8443/popup.html to the https://electric-data-pod.com:8443/common/popup.html, it will be worked.

image

Can anyone explain why this issue happens? Thanks.

Here is the demonstration of Solid client demo.

  • Firstly, visiting the following Solid App via export POPUP_URI='https://electric-data-pod.com:8443/popup.html'; npm run start:demo command after building the client demo successfully.

image

  • Then clicking the Login via popup button, it will present following window:

image

  • Then clicking Login in button, it will present following alert message:

image

  • If changing into the export POPUP_URI='https://electric-data-pod.com:8443/common/popup.html'; npm run start:demo command to run Solid client demo, trying to using same steps.

Then it will present following captured shot:

image

Node Solid Server serves the popup from /common/popup.html. Requests to other places will cause problems.

Hi @jaxoncreed, thanks for your passionate explanation.

Closed.