cordova - CORS with Backbone.js, Phonegap and ASP.NET Web API -
i have created web client app backbone.js , asp.net web api backend, main interaction between them client retrieves json data web api. both of them running on localhost in different ports. have built web app phonegap build.
i trying understand how cors works. 1 of tasks allow access client specific origin. web app, cors works fine when use access-control-allow-origin: * on web api. works fine when allow client's specific origin.
concerning phonegap app (on android) though, works fine when have access-control-allow-origin: * set on web api. question if can locate origin of phonegap app's request somehow, in order specify on server , allow access particular origin did web app client version.
Comments
Post a Comment