<div dir="ltr">When using mapcache to my mapserver I am getting the following error.Access to<div><br></div><div><i style=""><font color="#ff0000" style="background-color:rgb(255,255,255)"> XMLHttpRequest at '<a href="http://192.168.112.225/mapcache/?SERVICE=WMS&REQUEST=GetCapabilities">http://192.168.112.225/mapcache/?SERVICE=WMS&REQUEST=GetCapabilities</a>' from origin '<a href="http://192.168.115.38">http://192.168.115.38</a>' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.</font></i><div><br></div><div>I think this is caused by the fact that I have a forwarding rule in my mapcache.xml </div><i><b>      <forwarding_rule name="catch all"><br>            <http><br>              <url><a href="http://192.168.112.225/cgi-bin/mapserv?version=1.1.1&map=/usr/lib/cgi-bin/osm-bw.map">http://192.168.112.225/cgi-bin/mapserv?version=1.1.1&map=/usr/lib/cgi-bin/osm-bw.map</a></url><br>            </http><br></b></i><div><i><b>      </forwarding_rule></b></i></div><div><br></div><div>and in my apache.conf I have this</div><b><i><Directory /><br>        Header add Access-Control-Allow-Origin "*"<br>        Options FollowSymLinks<br>        AllowOverride None<br>        Require all denied<br></i></b><div><b><i></Directory>--</i></b><br></div><div><b><i><br></i></b></div><div>So one of the Access-Control-Allow-Origin  comes from the apache server for the GetCapabilities call and then another is added because the forwarding_rule adds the header as well.</div><div><br></div><div>What is a good way to get around this.  I tried to just add the access-Control-Allow-Origin rule on the mapcache path but it did not work.</div><div><br></div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><a href="http://www.atlantageek.com" target="_blank">http://www.atlantageek.com</a></div></div></div></div>