Is it possible to disable Mapstore Proxy?

12 views
Skip to first unread message

Michael Steigemann

unread,
Jul 9, 2024, 5:10:32 PM (8 days ago) Jul 9
to mapstore-developers
Hello,
we have a special setting in a secured network where we have to proxy requests three times. Normal WMS request to geoserver work well. As soon as GetCapabilities requests are called the Mapstore proxy activates and creates a proxy request that points to a host that is not actually reachable by Mapstore (e.g. https://host:port/proxy/?url=https://host:port/...)

The first proxy level works because it is on the same origin. We tried some settings in mapstores proxy.properties (https://github.com/geosolutions-it/http-proxy/wiki/Configuring-Http-Proxy) without success. Therefore we wanted to ask if it is possible to disable the proxy function of mapstore completely. We are using mapstore version 2023.01.02.

Thanks for your short feedback and all the best,
Michael 

Tobia Di Pisa

unread,
Jul 10, 2024, 4:38:08 AM (7 days ago) Jul 10
to mapstore-...@googlegroups.com
Dear Michael,

a couple of configurations are available to achieve this:
  • in proxy.properties set methodsWhitelist to a method that doesn’t exist. (e.g. “NOT_EXIST”). More information are also available in our training documentation
  • in  localConfig.json it is also possible to use this configuration:
{
     "proxyUrl": {
          "autoDetectCORS": true
          ...
     }
     ...
}

I hope this will help. We can maybe raise a PR today to improve a bit the documentation for this. Thank you for reporting it and for using MapStore.

Best Regards,
       Tobia Di Pisa

--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-develo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mapstore-developers/0770227a-c946-4c73-a3f5-f517197286b0n%40googlegroups.com.


--


==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==
Dott. Ing. Tobia Di Pisa
Technical Lead / Project Manager


GeoSolutions Group
phone: +39 0584 962313

mobile: +39 340 1781783
fax:      +39 0584 1660272

https://www.geosolutionsgroup.com/
http://twitter.com/geosolutions_it
-------------------------------------------------------


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Michael Steigemann

unread,
Jul 10, 2024, 6:34:22 AM (7 days ago) Jul 10
to mapstore-developers
Hello Tobia,
thank you very much. Adding  "autoDetectCORS": true in localConfig.json worked for us. A PR to improve the documentation would be very helpfull :-)
Thanks in advance and all the best,
Michael

Tobia Di Pisa

unread,
Jul 11, 2024, 9:35:25 AM (6 days ago) Jul 11
to mapstore-...@googlegroups.com
Dear Michael,


Regards,
      Tobia Di Pisa

Reply all
Reply to author
Forward
0 new messages