Sets CORS origin based on current Rails environment.