cOn 15 Jun 2018, at 13:54, Theo Bot wrote:
Can anybody tell me to to add an "Access-Control-Allow-Origin" in the

I've tried "$c->response->header('Access-Control-Allow-Origin' => '*');

That's how you do it.

But I don't see it in the response

Is that line of code actually running for the response?

Have you put it on the wrong route by mistake?

Are you putting it on the response for a POST or GET request when the browser is making a preflight OPTIONS request which isn't being handled by that?

Searchable archive:
Dev site:

Reply via email to