Subclassing Application controller with OptionsController to handle request from Browsers to the api.