Tutorial: Getting Started with Spark.publish()

Are you using @wgbartley PHP proxy from here?

You then have to change your URLs to be more like in this example:

$.get('/proxy.php?'+CORE_ID+'/variable_name', function(response) {
        console.log(response);
});