MCPcopy
hub / github.com/encode/starlette / allow_explicit_origin

Method allow_explicit_origin

starlette/middleware/cors.py:177–179  ·  view source on GitHub ↗
(headers: MutableHeaders, origin: str)

Source from the content-addressed store, hash-verified

175
176 @staticmethod
177 def allow_explicit_origin(headers: MutableHeaders, origin: str) -> None:
178 headers["Access-Control-Allow-Origin"] = origin
179 headers.add_vary_header("Origin")

Callers 1

sendMethod · 0.95

Calls 1

add_vary_headerMethod · 0.80

Tested by

no test coverage detected