Skip to content

Commit

Permalink
fixed request issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaaj committed Aug 22, 2022
1 parent 3b57e51 commit 93839a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Middleware/ForceJsonMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ForceJsonMiddleware {
*/
public function handle(Request $request, Closure $next)
{
$request->headers->set('Accept', 'application/json');
$response = $next($request);
$response->headers->set('Accept', 'application/json');
$response->headers->set('Access-Control-Allow-Origin', '*');
Expand Down

0 comments on commit 93839a8

Please sign in to comment.