Skip to content

Commit

Permalink
Merge pull request #44 from andreciornavei/develop
Browse files Browse the repository at this point in the history
add localhost cookie domain
  • Loading branch information
andreciornavei authored Mar 7, 2024
2 parents 58d2333 + 5541ec6 commit 855166d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/Http/Controllers/AuthLoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function handler(Request $request)
$response = new Response(json_encode(auth()->user()));
return $response
->withHeaders(['Cache-Control' => 'no-cache, private'])
->withCookie(cookie("Authorization", $token, 60, null, "localhost", false, true, false, "none"));
->withCookie(cookie("Authorization", $token, 60, null, null, false, true, false, "none"));
} catch (Exception $error) {
return response()->json(json_decode($error->getMessage()), 401);
}
Expand Down

0 comments on commit 855166d

Please sign in to comment.