MCPcopy Create free account
hub / github.com/bdring/FluidNC / add_cors_headers

Function add_cors_headers

tools/stack_trace_decoder/server.py:68–72  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

66
67@app.after_request
68def add_cors_headers(response):
69 response.headers["Access-Control-Allow-Origin"] = "*"
70 response.headers["Access-Control-Allow-Headers"] = "Content-Type"
71 response.headers["Access-Control-Allow-Methods"] = "POST, OPTIONS"
72 return response
73
74
75@app.route("/decode", methods=["POST", "OPTIONS"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected