def do_OPTIONS(self):
        "OPTIONS method"
        req = self.build_response(code = 204)
        req.add_header('Access-Control-Allow-Origin', "*")
        req.add_header('Access-Control-Allow-Methods', "OPTIONS, POST")
        req.add_header('Access-Control-Allow-Headers', "Origin, X-Requested-With, Content-Type, Accept, Authorization")
        req.add_header('Access-Control-Max-Age', 1728000)
        self.end_response(req)