Skip to content

Commit f786554

Browse files
authored
暂时修复 6.0.3 问题
1 parent 8aafb09 commit f786554

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Middleware/Jwt.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ public function __construct(App $app)
2222

2323
public function handle($request, \Closure $next, $store = 'admin')
2424
{
25+
// 暂时修复 6.0.3 options 问题
26+
if ($request->isOptions()) {
27+
return $next($request);
28+
}
29+
2530
if (true === $this->app->jwt->store($store)->verify()) {
2631

2732
$jwt_user = $this->app['jwt.user'];

0 commit comments

Comments
 (0)