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


Dammapeta Mandal Sarpanch Upa-Sarpanch Mobile Numbers List Khammam District...


Sarah Samis, Emil Bove III


ZARIA CUMMINGS


Need radio code for IVECO Delphi Aptiv FJ5 RBT M16


Black Angus Grilled Artichokes


Ed Sheeran – Sapphire – Pre-Single [iTunes Plus M4A]


Sunny Garcia’s Ex-Wife Colleen McCullough


99 God Status for Whatsapp, Facebook


Funeral of Sir Warwick Franklin


MHDD