Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Share error - The page has refused the connection

27 views
Skip to first unread message

Luis Clemente Villaescusa

unread,
Jan 2, 2025, 3:56:11 AMJan 2
to georchestra
Hello, I am trying to share a map from the “share” button of mapstore and when I insert it in an external page it tells me “The page has refused the connection” .
The html code generated from the mapstore tool is:
<iframe allowFullScreen style=“border: none;” height=“500” width=“600” src=“https://xxx.xxx.xxx:500/mapstore/#/”></iframe>

Does anyone know why it is due to this error.
Thank you very much in advance.

Translated with DeepL.com (free version)

François Van Der Biest

unread,
Jan 2, 2025, 9:11:33 AMJan 2
to georc...@googlegroups.com
Hi Luis,

Your URL looks like a local one, as it features an invalid port for https: src=“https://xxx.xxx.xxx:500/mapstore/#/
Are you running a local instance with a modified setup ?
Regards

--
--
Vous avez reçu ce message, car vous êtes abonné au groupe
Groupe "georchestra" georc...@googlegroups.com
voir http://groups.google.fr/group/georchestra
 
Site web : http://www.georchestra.org

---
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "georchestra".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse georchestra...@googlegroups.com.
Pour afficher cette discussion, accédez à https://groups.google.com/d/msgid/georchestra/b04c27ff-03ee-4aba-b236-889f4fe09e99n%40googlegroups.com.

Luis Clemente Villaescusa

unread,
Jan 3, 2025, 2:34:09 AMJan 3
to georchestra
Hello, first of all, thank you very much for replying.
My configuration is as follows:
- georchestra deployment via docker on a local server. I have several instances on the same server , that's why I use different ports.
- the version i'm using of georchestra is version 24.0

Everything works correctly for me.
If i am trying to share a map from the “share” button of mapstore and when I insert it in an external page it tells me “The page has refused the connection” .
Also, if I try to share the mapstore or geonetwork page via iframe in another external application, I get the same message the error.
on the other hand, if i use the georchestra demo page i don't get any error.
I think it is for security, to avoid CORS (Cross-Origin Resource Sharing).
I have been checking the configuration files but I have not found any place where I can configure from which url is allowed to connect against my georchestra.
Thank you very much for your selfless help and for all the contributions you make to the project.
Regards.



François Van Der Biest

unread,
Jan 3, 2025, 4:38:53 AMJan 3
to georc...@googlegroups.com
Hi Luis,

To my knowledge, https requires port 443. Browsers will bark at you when using a different one, eg here when included in an iframe.
If you need several instances, you should use different domain names instead.

Regards,
F.

Luis Clemente Villaescusa

unread,
Jan 3, 2025, 5:47:43 AMJan 3
to georchestra
Hello, I changed the port to 443 but I still get the same error.
I have been able to find out more information about the error with the browser tools:
“Refused to display 'https://xxx.xxx.xxx/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Searching on Github, I found the following issue that I think is related to the error:

https://github.com/georchestra/georchestra/issues/2639

greetings.
Reply all
Reply to author
Forward
0 new messages