javascript client to Python server: XMLHttpRequest responseText is empty after Get request
问题 I am trying to write a chrome extension which is able to send/receive data to/from a python server script. Currently, I am at the point where the js script is making a GET request okay, the only issue being that the .responseText is always empty (even though the python script is responding with text). popup.js document.addEventListener('DOMContentLoaded', function() { var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { if (xhr.readyState == xhr.DONE) { var resptxt = xhr