Skip to content

Commit

Permalink
fix: make axios send credentials by default
Browse files Browse the repository at this point in the history
  • Loading branch information
thenicekat committed Feb 26, 2024
1 parent 6a0c7ed commit 8ee4d97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions frontend/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { title } from "@/components/primitives";
import Post from "@/components/Post";
import getGoogleOAuthUrl from "@/utils/getGoogleOAuthUrl";
import { Button } from "@nextui-org/button";
import axios from "axios";

axios.defaults.withCredentials = true;

export default function Home() {
const posts = [
Expand Down
1 change: 0 additions & 1 deletion frontend/app/user/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export default function CreateUser() {
name: data.name,
phoneNumber: data.phoneNumber
}, {
withCredentials: true,
headers: {
'Content-Type': 'application/json'
}
Expand Down

0 comments on commit 8ee4d97

Please sign in to comment.