October 2016

Cors is your best friend and worse enemy. Enable cors in your backend: config.EnableCors(); in Startup.MobileApp.Cs Add EnableCors attribute to your controller: [EnableCors(“*”, “*”, “*”)] Sample javascript for making request: Azureservice.invokeApi(“chat/GetAccessToken”, { method: ‘get’, body: null, parameters: { deviceId: window.device.uuid || ‘browser’, } }) .then(function () { console.log(‘promise.success’, arguments); }, function…

Read More