angularjs - Why might I get a double escape sequence error in mobile chrome but not desktop chrome? -


when attempting make ajax post angular web page on mobile device, receive following error:

the request contained double escape sequence , request filtering configured on web server deny double escape sequences. 

however, when attempting make same post desktop, post works expected , receive no error. have tested in chrome , ie.

here ajax post if helps:

$scope.upload = $upload.upload({ url: baseapiaddress + 'mobile/' + customerphone, //+ $scope.mobileid, method: 'put', file: file, // or list of files: files html5 contenttype: "application/json" }) 

i able prevent error adding following web.config:

<system.webserver>   <security>     <requestfiltering allowdoubleescaping="true"/>   </security> </system.webserver> 

i'm reading why may dangerous here.

why error occur on mobile when not present on desktop? thank time. please let me know if being unclear or if need additional information me.

i made mistake , forgot function added +1 front of user's phone numbers, later used in constructing url. + character causes iis throw double escaping error (more info here , here). once remove + character, error no longer shows up. error wasn't present in desktop version because manually entered url , did not add + character when testing.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -