Fix Cross Domain Rails - AngularJs