From 51d0921483433fb8573d4c7563e06f8fa592e29a Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 10 Sep 2021 03:51:47 +0800 Subject: [PATCH] 111 --- http-message/Message.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/http-message/Message.php b/http-message/Message.php index 1338df4c..0c30d07e 100644 --- a/http-message/Message.php +++ b/http-message/Message.php @@ -192,4 +192,32 @@ trait Message return $this; } + + + /** + * @return string|null + */ + #[Pure] public function getAccessControlAllowOrigin(): ?string + { + return $this->getHeaderLine('Access-Control-Allow-Origin'); + } + + + /** + * @return string|null + */ + #[Pure] public function getAccessControlAllowHeaders(): ?string + { + return $this->getHeaderLine('Access-Control-Allow-Headers'); + } + + + /** + * @return string|null + */ + #[Pure] public function getAccessControlRequestMethod(): ?string + { + return $this->getHeaderLine('Access-Control-Request-Method'); + } + }