Issue
We have an angular application (served using Tomcat web server) that makes "XHR" requests to "Express" (Node v14) server. Both the web server and app server are hosted on-premise. After updating Chrome from 101.x to 102.0.5005.63 (Mac) and 102.0.5005.61 (Win), we are seeing intermittent API failures in our web application. The "Status" in dev tools shows as "(failed)" for these "xhr" and "prefetch" requests. Console log says "net::ERR_TIMED_OUT". However there are no such intermittent errors when the API calls are made from Postman or from Chrome v102.x. I also tested in "Safari" and "Edge" and there is no error there. Can someone help here?
Solution
Try disabling "Send Private Network Access preflights" by visiting chrome://flags/#private-network-access-send-preflights
If it fixes the problem - your server should respond properly to "Access-Control-Request-Private-Network: true" preflight requests
More info: https://developer.chrome.com/blog/private-network-access-preflight/
Answered By - Roman Bats
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.