When attempting to make an ajax post from my angular web page on a mobile device, I receive the following error:
The request contained a double escape sequence and request filtering is configured on the Web server to deny double escape sequences.
However, when attempting to make the same post from my desktop, the post works as expected and I receive no error. I have tested this in chrome and IE.
Here is the ajax post if it helps:
$scope.upload = $upload.upload({
url: baseApiAddress + 'mobile/' + customerPhone, //+ $scope.mobileId,
method: 'PUT',
file: file, // or list of files: files for html5 only
contentType: "application/json"
})
I am able to prevent this error by adding the following to my web.config
:
<system.webServer>
<security>
<requestFiltering allowDoubleEscaping="True"/>
</security>
</system.webServer>
I'm reading why this may be dangerous here.
Why does this error occur on mobile when it is not present on desktop? Thank you very much for your time. Please let me know if I am being unclear or if you need any additional information from me.