Used a gem rake-cors to manage cors