Added rack-cors gem to handle CORS correctly