@bitbangx opened this Issue on April 3rd 2015

I'm trying to make requests to Piwik API via Ajax but Piwik doesn't set 'Access-Control-Allow-Origin' field in header.
I modified config.php.ini and added cors_domains[] = * but nothing changed.
Using version 2.12.1

@mattab commented on April 7th 2015 Owner

Hi @bitbangx
did you add the cors_domain line below [General] ?

@bitbangx commented on April 7th 2015

[General]
salt = "censored"
trusted_hosts[] = "censored"
cors_domains[] = *

@mattab commented on April 7th 2015 Owner

I'm not sure if this will work but can you try cors_domains[] = "*" (with double quotes?)

@bitbangx commented on April 7th 2015

Nope, It doesn't work

@mattab commented on April 7th 2015 Owner

Let's investigate and see if we can reproduce this

@mattab commented on April 10th 2015 Owner

Thanks @bitbangx for the report!
we documented something that was never implemented. Good to know this now works as documented :+1:

This Issue was closed on April 10th 2015
Powered by GitHub Issue Mirror