diff --git a/composer.json b/composer.json index cc41e59..87b0559 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "illuminate/contracts": "^5.6|^6.0|^7.0|^8.0", "symfony/http-foundation": "^4.0|^5.0", "symfony/http-kernel": "^4.0|^5.0", - "asm89/stack-cors": "^2" + "asm89/stack-cors": "^2.0.1" }, "require-dev": { "laravel/framework": "^5.5|^6.0|^7.0|^8.0", diff --git a/tests/GlobalMiddlewareTest.php b/tests/GlobalMiddlewareTest.php index 7c4c12a..81bdca8 100644 --- a/tests/GlobalMiddlewareTest.php +++ b/tests/GlobalMiddlewareTest.php @@ -147,7 +147,7 @@ public function testAllowHeaderAllowedWildcardOptions() 'HTTP_ACCESS_CONTROL_REQUEST_METHOD' => 'POST', 'HTTP_ACCESS_CONTROL_REQUEST_HEADERS' => 'x-custom-3', ]); - $this->assertEquals('*', $crawler->headers->get('Access-Control-Allow-Headers')); + $this->assertEquals('x-custom-3', $crawler->headers->get('Access-Control-Allow-Headers')); $this->assertEquals(204, $crawler->getStatusCode()); $this->assertEquals('', $crawler->getContent());