Ejemplo n.º 1
0
 def end_headers(self):
     self.send_header("Access-Control-Allow-Origin", "*")
     SimpleXMLRPCRequestHandler.end_headers(self)
Ejemplo n.º 2
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)
Ejemplo n.º 3
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)
Ejemplo n.º 4
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)
 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)