CORS blocked using WordPress Visualizer (Google Charts) plugin

48 views
Skip to first unread message

Carlos Paparoni

unread,
Jul 22, 2016, 12:33:50 AM7/22/16
to Google Visualization API
Hi all, I've been using the aforementioned plugin (https://wordpress.org/plugins/visualizer/ -- which uses the Google Charts API) to setup some charts on my site. Everything was working well, so I left the charts to work on some other areas of the site. When coming back to the charts, however, I found that they no longer display on my sites, either on development or production environments (different servers for those). Testing with Chrome and Firefox, I get this message:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.gstatic.com/charts/44/css/util/util.css (reason: CORS 'Access-Control-Allow-Origin' header is missing).

Examining the plugin files, I see that it loads the Chart library with:

g.charts.load("current", {packages: ["corechart", "geochart", "gauge", "table", "timeline"]});

but if I change "current" to "43" or less, the problem goes away and the charts load correctly.

Is this a plugin issue or should this be a report to fix the headers for that particular file?

Thanks.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages