Hi all,
I’m developing a panel where there are quick Piwik statistics, now the problem is that Piwik is installed into server 1 and the other application is installed in local. When i attempt to use the API provided by Piwik with a jquery script it show CORSS error.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.andreacatania.com/piwik/index.php?module=API&method=Actions.getPageUrl&idSite=1&period=range&date=last7&pageUrl=%2Fcpumper%2Ftest&format=json&token_auth=7917f2596f8bb70c954893f200ba6274&crossDomain=true. This can be fixed by moving the resource to the same domain or enabling CORS.
I’m facing the same issue as well. Eventhough I have cors_domains[] = * enabled, I still see the response header as -
Access-Control-Allow-Origin: https://localhost