From eb8293faca9e7f9427c67727699b0dedf7475a27 Mon Sep 17 00:00:00 2001 From: dewanakl Date: Wed, 26 Apr 2023 01:21:55 +0700 Subject: [PATCH] feat: fix vary header --- app/Middleware/CorsMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Middleware/CorsMiddleware.php b/app/Middleware/CorsMiddleware.php index 4bbc29e..168e063 100644 --- a/app/Middleware/CorsMiddleware.php +++ b/app/Middleware/CorsMiddleware.php @@ -15,7 +15,7 @@ public function handle(Request $request, Closure $next) header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS'); header('Access-Control-Allow-Headers: Origin, Content-Type, Accept, Authorization, Token'); header('Origin: ' . baseurl()); - header('Vary: Accept-Encoding, Origin'); + header('Vary: Accept-Encoding, Origin, User-Agent'); if ($request->method() != 'OPTIONS') { return $next($request);