MCPcopy
hub / github.com/pallets/werkzeug / access_control_allow_credentials

Method access_control_allow_credentials

src/werkzeug/sansio/response.py:699–704  ·  view source on GitHub ↗

Whether credentials can be shared by the browser to JavaScript code. As part of the preflight request it indicates whether credentials can be used on the cross origin request.

(self)

Source from the content-addressed store, hash-verified

697
698 @property
699 def access_control_allow_credentials(self) -> bool:
700 """Whether credentials can be shared by the browser to
701 JavaScript code. As part of the preflight request it indicates
702 whether credentials can be used on the cross origin request.
703 """
704 return "Access-Control-Allow-Credentials" in self.headers
705
706 @access_control_allow_credentials.setter
707 def access_control_allow_credentials(self, value: bool | None) -> None:

Callers

nothing calls this directly

Calls 1

popMethod · 0.45

Tested by

no test coverage detected