CrossDomain Denied

Hi Everyone!

I’m trying to use only one Piwik’s aplication to mesure somes diferent test domains.

The issue:

When the page ping my Piwik’s server got the response:
XMLHttpRequest cannot load http://site.com/piwik/piwik.php?etc… No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘refenrence.com’ is therefore not allowed access.

My .htacess is already configure

Header add Access-Control-Allow-Origin “*”
Header add Access-Control-Allow-Headers “origin, x-requested-with, content-type”
Header add Access-Control-Allow-Methods “PUT, GET, POST, DELETE, OPTIONS”

My config.ini

[General]
cors_domains[] = *
trusted_hosts[] = *

And i tryed to test some other things, i create a test.php to capture some get’s parameters and save it in a BD, the same reference and domain, and its works but no Piwik.

It looks like that Piwik overwrite my Http headers.

Any ideas?

Thz

Maybe you need to read this FAQ ?
http://piwik.org/faq/how-to/faq_18694/

Hi Kermen,

Did you manage to get this sorted out?

Similar to you, I added:
[General]
cors_domains[] = *

However, I still get the No ‘Access-Control-Allow-Origin’ header error.

Thanks!