diff --git a/lib/cartodb/cartodb_windshaft.js b/lib/cartodb/cartodb_windshaft.js index db23e084..cab43412 100644 --- a/lib/cartodb/cartodb_windshaft.js +++ b/lib/cartodb/cartodb_windshaft.js @@ -65,6 +65,7 @@ var CartodbWindshaft = function(serverOptions) { * Helper to allow access to the layer to be used in the maps infowindow popup. */ ws.get(serverOptions.base_url + '/infowindow', function(req, res){ + ws.doCORS(res); Step( function(){ serverOptions.getInfowindow(req, this); @@ -84,6 +85,7 @@ var CartodbWindshaft = function(serverOptions) { * Helper to allow access to metadata to be used in embedded maps. */ ws.get(serverOptions.base_url + '/map_metadata', function(req, res){ + ws.doCORS(res); Step( function(){ serverOptions.getMapMetadata(req, this); @@ -103,6 +105,7 @@ var CartodbWindshaft = function(serverOptions) { * TODO: Move? */ ws.del(serverOptions.base_url + '/flush_cache', function(req, res){ + ws.doCORS(res); Step( function(){ serverOptions.flushCache(req, Cache, this);