<div dir="ltr">I just want to add a feature for my application that would allow users to add any WFS/WPS/etc servers. I didn't realize the open-proxy problem. Thanks for clarifying this issue.<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-07-21 5:15 GMT+02:00 Phil Scadden [via OSGeo.org] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5152169&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span>:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
<br>> Is there any way to allow each host? Not only those from the allowedHosts
<br>> array.
<br>>
<br>> Or is possible to add host to this array via OpenLayers?
<br>>
<br></div><div class="">You have to do this with server-side code. You need to be very careful
<br>with security since you dont want to give someone a way to turn this
<br>into an open proxy? I gather this is so you can give users a way to add
<br>layers from arbitrary server to a map? If so, then you need a much more
<br>expanded proxy application. You should pass the URL to add to a handler
<br>which can then check for a valid getCaps response before adding the
<br>server to the allowed list. You need to think about persistence as well.
<br>No simple answers and any code is highly dependent on your server side
<br>environment.
<br><br>Notice: This email and any attachments are confidential.
<br>If received in error please destroy and immediately notify us.
<br>Do not copy or disclose the contents.
<br><br>_______________________________________________
<br>Users mailing list
<br></div><a href="http://user/SendEmail.jtp?type=node&node=5152005&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br>
<br>
<hr noshade size="1" color="#cccccc">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://osgeo-org.1560.x6.nabble.com/Problem-with-cross-origin-tp5151993p5152005.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Problem-with-cross-origin-tp5151993p5152005.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from Problem with cross-origin, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></blockquote></div><br></div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Problem-with-cross-origin-tp5151993p5152169.html">Re: Problem with cross-origin</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/OpenLayers-Users-f3910695.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br/>