The problem of "Error: Could not connect to main window." alert message
peter279k opened this issue · 3 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.
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:
(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.
- If I change the popup target
https://electric-data-pod.com:8443/popup.html
to thehttps://electric-data-pod.com:8443/common/popup.html
, it will be worked.
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.
- Then clicking the
Login via popup
button, it will present following window:
- Then clicking
Login in
button, it will present following alert message:
- 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:
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.