[OpenLayers-Users] send cross-site credentials to a secure WMS via OL

Carolin Wengerter wengerter at gmail.com
Fri Aug 29 11:02:15 EDT 2008


Hello,

I've got a secure WMS (apache, basic authentication) and I want to
include the credentials in the http-header. How could I do this? Or is
there another way to send the credentials to the server via OL?

I tried with OpenLayers.Request, but it only works for one domain and
I have to do a cross-site request.

My index.html is at localhost.
This is the WMS-Layer:
wms_auth = new OpenLayers.Layer.WMS( "WMS Auth" ,
"http://wms-server/...", {layers: 'tk', format: 'image/jpeg',
srs:'EPSG:31468', version:'1.1.1'});

Hope, you can help me.

Bye



More information about the Users mailing list