XHR responseText is empty string
Html Page: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>xhr</title> </head> <body> <script> var xhr_test = new XMLHttpRequest(); xhr_test.open("GET","xhrtest",true); xhr_test.send(); alert(xhr_test.responseText); </script> </body> </html> The main.py file: import webapp2 from handlers import cookies,pages application = webapp2.WSGIApplication([ ('/xhr',pages.XHR), ('/xhrtest', cookies.XHRTest) ], debug=True) The Request handlers: class XHRTest(webapp2.RequestHandler): def get(self): self.response.write('0') and, class XHR(webapp2.RequestHandler): def get(self): f =