<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 15, 2018, 15:25 David Dorward &lt;<a href="mailto:david@dorward.me.uk">david@dorward.me.uk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">cOn 15 Jun 2018, at 13:54, Theo Bot wrote:<br>
&gt; Can anybody tell me to to add an &quot;Access-Control-Allow-Origin&quot; in the<br>
&gt; header:<br>
&gt;<br>
&gt; I&#39;ve tried &quot;$c-&gt;response-&gt;header(&#39;Access-Control-Allow-Origin&#39; =&gt; <br>
&gt; &#39;*&#39;);<br>
<br>
That&#39;s how you do it.<br>
<br>
&gt; But I don&#39;t see it in the response<br>
<br>
Is that line of code actually running for the response? Yes<br>
<br>
Have you put it on the wrong route by mistake? ??<br>
<br>
Are you putting it on the response for a POST or GET request when the <br>
browser is making a preflight OPTIONS request which isn&#39;t being handled <br>
by that? An Ajax (jqeury) post request.<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank" rel="noreferrer">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer noreferrer" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer noreferrer" target="_blank">http://dev.catalyst.perl.org/</a><br>
</blockquote></div></div></div>