Re: [OpenLayers-Users] Setting default header parameter for all ajax requests

2009-04-29 Thread Milan Antonovic
Thanks all for response.. I've found an alternative solution for that. I authenticate using the standard way with my security-proxy (without javascript) and then all the request have the right header (no need to set manually). Hi Roald, If I send user and password in the header of the request usua

Re: [OpenLayers-Users] Setting default header parameter for all ajax requests

2009-04-28 Thread Roald de Wit
Hi Milan, Even if you could pass the password into the request, this password could easily be found by anyone by looking at the request or source code. If you want this to work and keep the password secret, I think you'd need to pass all your WMS requests (that need authentication) through a prox

Re: [OpenLayers-Users] Setting default header parameter for all ajax requests

2009-04-28 Thread Christopher Schmidt
On Tue, Apr 28, 2009 at 06:45:17PM +0200, Milan Antonovic wrote: > Hi all, > I have a question for you.. > I would like to set the default header parameter for all the openlayers ajax > request, even that used by OpenLayers.Layer.Wms. WMS requests don't go through AJAX, so this is not possible in

[OpenLayers-Users] Setting default header parameter for all ajax requests

2009-04-28 Thread Milan Antonovic
Hi all, I have a question for you.. I would like to set the default header parameter for all the openlayers ajax request, even that used by OpenLayers.Layer.Wms. That's because I need to set the "Authorization" parameter in the header with user and password for my WMS Layers. I've tried with: Ope