Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

Need additional Access-Control Header parameter for CORS (no replies)

$
0
0
Hi there, I am trying to use the API to get JSON data for use with ExtJS front end. I was able to get the cross-domain working, but I need to add an addtional header:

header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");

I was able to get everything working if I hardcode that line in 'core\API\CORSHandler.php' handle() function.

Is there a better way to add this extra header without hardcoding the value?

Viewing all articles
Browse latest Browse all 4243

Trending Articles