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.
if using ajax data remote server, please make sure
internet(client)
capability enabled inpackage.appmanifest
. if want call ajax local server, make sureprivate networks(client & server)
capability enabled.if using content security policy in app. make sure server address of ajax call included after
default-src
orconnect-src
in<meta>
. details csp can refer this document.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
Post a Comment