Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No 'Access-Control-Allow-Origin' #7626

Closed
bitbangx opened this issue Apr 3, 2015 · 6 comments
Closed

No 'Access-Control-Allow-Origin' #7626

bitbangx opened this issue Apr 3, 2015 · 6 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@bitbangx
Copy link

bitbangx commented Apr 3, 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
Copy link
Member

mattab commented Apr 7, 2015

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

@bitbangx
Copy link
Author

bitbangx commented Apr 7, 2015

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

@mattab
Copy link
Member

mattab commented Apr 7, 2015

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

@bitbangx
Copy link
Author

bitbangx commented Apr 7, 2015

Nope, It doesn't work

@mattab
Copy link
Member

mattab commented Apr 7, 2015

Let's investigate and see if we can reproduce this

@mattab mattab added this to the Piwik 2.13.0 milestone Apr 7, 2015
@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Apr 8, 2015
@mattab mattab closed this as completed in 9e269c7 Apr 10, 2015
@mattab
Copy link
Member

mattab commented Apr 10, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants