<div dir="ltr"><div>David,</div><div><br></div><div>It is routed to the default en routine:</div><div><br></div><div>sub end :ActionClass(&#39;RenderView&#39;) {</div><div>     my($self,$c) = @_;<br></div><div>}<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 15, 2018 at 3:07 PM, David Dorward <span dir="ltr">&lt;<a href="mailto:david@dorward.me.uk" target="_blank">david@dorward.me.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">cOn 15 Jun 2018, at 13:54, Theo Bot wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can anybody tell me to to add an &quot;Access-Control-Allow-Origin&quot; in the<br>
header:<br>
<br>
I&#39;ve tried &quot;$c-&gt;response-&gt;header(&#39;Access-<wbr>Control-Allow-Origin&#39; =&gt; &#39;*&#39;);<br>
</blockquote>
<br></span>
That&#39;s how you do it.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But I don&#39;t see it in the response<br>
</blockquote>
<br></span>
Is that line of code actually running for the response?<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 browser is making a preflight OPTIONS request which isn&#39;t being handled by that?<br>
<br>
______________________________<wbr>_________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-b<wbr>in/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" rel="noreferrer" target="_blank">http://www.mail-archive.com/ca<wbr>talyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Met vriendelijke groet,<br><br>Theo Bot<br><br></div></div></div>
</div>