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… No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘’ 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

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?


Maybe you need to read this FAQ ?

Hi Kermen,

Did you manage to get this sorted out?

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

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