From 93839a87e4c4f68f111d69c9b4a26f96800f1127 Mon Sep 17 00:00:00 2001 From: Muheez Jimoh Date: Mon, 22 Aug 2022 10:11:41 +0100 Subject: [PATCH] fixed request issues --- src/Middleware/ForceJsonMiddleware.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Middleware/ForceJsonMiddleware.php b/src/Middleware/ForceJsonMiddleware.php index 4b10417..ae449d9 100644 --- a/src/Middleware/ForceJsonMiddleware.php +++ b/src/Middleware/ForceJsonMiddleware.php @@ -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', '*');