Skip to content

Commit

Permalink
feat: fix vary header
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Apr 25, 2023
1 parent 88f77a8 commit eb8293f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Middleware/CorsMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eb8293f

Please sign in to comment.