watson / ipp-printer

An IPP printer written in Node.js
MIT License
557 stars 80 forks source link

iOS Client repeating POST request after server return HTTP 401 Unauthorized error #31

Closed ChrisKays closed 5 years ago

ChrisKays commented 5 years ago

I'm developing a new Airprint Server App for IOS device/Client. I have Everything working apart from the Authentication. IOS client repeat Post Request after receiving HTTP 401 Unauthorized error from the server. From the server App Console i can see the request being repeated/fired 3 times. My goal is to have the client react to the very first HTTP 401 Unauthorized response and display a UI for Username and password

How can i prevent the POST request from client to be repeated 3 times? Any suggestion?