[OpenLayers-Dev] Headers in WMS Layer

Moises Arcos marcos at emergya.com
Fri Apr 4 02:30:33 PDT 2014


Hi developers,

I am using OpenLayers 2.11 to display WMS Layers, but I need any help,
because I am trying to pass authorization headers into a WMS request, but I
don't know if it's possible.

The request that I sent is:

var layer = new OpenLayers.Layer.WMS(
layerData.name,
layer_url,
{
layers: layers
},
{
     *headers: {*
*                     'Authorization': 'Basic user:pass'*
*       }*
}
);

I know that the better options to do this is throught a proxy, but I need
to do this temporaly.

Regards!!!

-- 
Moisés Arcos Santiago
Área de Proyectos

Emergya Consultoría
Tfno: +34 954 51 75 77
Fax: +34 954 51 64 73
www.emergya.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20140404/dbab475d/attachment.html>


More information about the Dev mailing list