Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit dbfc311

Browse files
authored
Bump stack-cors v2.0.1 (#466)
1 parent 7f2ac85 commit dbfc311

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"illuminate/contracts": "^5.6|^6.0|^7.0|^8.0",
2020
"symfony/http-foundation": "^4.0|^5.0",
2121
"symfony/http-kernel": "^4.0|^5.0",
22-
"asm89/stack-cors": "^2"
22+
"asm89/stack-cors": "^2.0.1"
2323
},
2424
"require-dev": {
2525
"laravel/framework": "^5.5|^6.0|^7.0|^8.0",

tests/GlobalMiddlewareTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function testAllowHeaderAllowedWildcardOptions()
147147
'HTTP_ACCESS_CONTROL_REQUEST_METHOD' => 'POST',
148148
'HTTP_ACCESS_CONTROL_REQUEST_HEADERS' => 'x-custom-3',
149149
]);
150-
$this->assertEquals('*', $crawler->headers->get('Access-Control-Allow-Headers'));
150+
$this->assertEquals('x-custom-3', $crawler->headers->get('Access-Control-Allow-Headers'));
151151
$this->assertEquals(204, $crawler->getStatusCode());
152152

153153
$this->assertEquals('', $crawler->getContent());

0 commit comments

Comments
 (0)