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'); + } + }