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

Chris Adams chris at genieknows.com
Fri Aug 29 11:14:28 EDT 2008


I think what you want is a method (?) called "JSONP", see this link: 
http://events.ccc.de/congress/2006/Fahrplan/attachments/1198-jsonrpcmesch.pdf

Carolin Wengerter wrote:
> 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
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>   




More information about the Users mailing list