Пример #1
0
 def end_headers(self):
     self.send_header("Access-Control-Allow-Headers",
                      "Origin, X-Requested-With, Content-Type, Accept")
     self.send_header("Access-Control-Allow-Origin", "*")
     SimpleXMLRPCRequestHandler.end_headers(self)
Пример #2
0
 def end_headers(self):
     # Hack to add a specific header
     # Thk to: https://gist.github.com/rca/4063325
     self.send_my_headers()
     SimpleXMLRPCRequestHandler.end_headers(self)
Пример #3
0
 def end_headers(self):
     # Hack to add a specific header
     # Thk to: https://gist.github.com/rca/4063325
     self.send_my_headers()
     SimpleXMLRPCRequestHandler.end_headers(self)
Пример #4
0
 def end_headers(self):
     self.send_header("Access-Control-Allow-Headers",
                      "Origin, X-Requested-With, Content-Type, Accept")
     self.send_header("Access-Control-Allow-Origin", "*")
     SimpleXMLRPCRequestHandler.end_headers(self)
Пример #5
0
 def end_headers(self):
     """ End response header with adding Access-Control-Allow-Origin
     
     This is done to enable CORS request from all clients """
     self.send_header("Access-Control-Allow-Origin", "*")
     SimpleXMLRPCRequestHandler.end_headers(self)
Пример #6
0
 def end_headers(self):
     """ End response header with adding Access-Control-Allow-Origin
     
     This is done to enable CORS request from all clients """
     self.send_header("Access-Control-Allow-Origin", "*")
     SimpleXMLRPCRequestHandler.end_headers(self)