angularjs - Does UWP app support ajax? -


i have windows 8 hybrid app , want migrate uwp. facing 2 issues , have been searching on internet quite few time. want know if uwp support ajax function. anchor tag in href not parsing. might reason.

i want know if uwp support ajax function

the answer yes, can use ajax in uwp application. there few things need notice when using ajax in uwp.

  1. if using ajax data remote server, please make sure internet(client) capability enabled in package.appmanifest. if want call ajax local server, make sure private networks(client & server) capability enabled.

  2. if using content security policy in app. make sure server address of ajax call included after default-src or connect-src in <meta>. details csp can refer this document.

  3. cross-origin should under concern when migrating. enable cors can refer add cors support server.

my anchor tag in href not parsing. might reason.

for safty reason, uwp doesn't support inline javascript. codes <a ng-click="jsfunc();"></a> won't work. please add eventlistener in js files.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -