Skip to content

Commit d6f2452

Browse files
committed
Fix AcceptRestfulTrait header incorrect
1 parent 940f9c3 commit d6f2452

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Middleware/AcceptRestfulTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ trait AcceptRestfulTrait
1010
protected function acceptRequestRestful($origin, Request $request, Closure $next)
1111
{
1212
return $next($request)
13-
->header('Access - Control - Allow - Origin', $origin)
14-
->header('Access - Control - Allow - Methods', 'GET, POST, PUT, DELETE, OPTIONS')
15-
->header('Access - Control - Allow - Headers', 'Content - Type, Authorization');
13+
->header('Access-Control-Allow-Origin', $origin)
14+
->header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS')
15+
->header('Access-Control-Allow-Headers', 'Content-Type, Authorization');
1616
}
1717
}

0 commit comments

Comments
 (0)