MCPcopy Create free account
hub / github.com/PromtEngineer/localGPT / do_OPTIONS

Method do_OPTIONS

backend/server.py:41–47  ·  view source on GitHub ↗

Handle CORS preflight requests

(self)

Source from the content-addressed store, hash-verified

39 super().__init__(*args, **kwargs)
40
41 def do_OPTIONS(self):
42 """Handle CORS preflight requests"""
43 self.send_response(200)
44 self.send_header('Access-Control-Allow-Origin', '*')
45 self.send_header('Access-Control-Allow-Methods', 'GET, POST, DELETE, OPTIONS')
46 self.send_header('Access-Control-Allow-Headers', 'Content-Type')
47 self.end_headers()
48
49 def do_GET(self):
50 """Handle GET requests"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected