Skip to content

Commit

Permalink
fix: filename
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX committed Apr 9, 2020
1 parent 78bef4b commit 6932d22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"autoload-dev": {
"psr-4": {
"Test\\Think\\": "tests"
"Test\\Think\\Cors\\": "tests"
}
},
"extra": {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/CorsMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CorsMiddleware

public function __construct(Config $config)
{
$conf = $config->get('cros', []);
$conf = $config->get('cors', []);

$this->cors = new CorsCore(
$conf['allowed_origins'] ?? [],
Expand Down

0 comments on commit 6932d22

Please sign in to comment.