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)
| 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: |