Skip to content

Commit

Permalink
fix: withCredentials 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellol77 committed Feb 5, 2024
1 parent 31cd1e8 commit 98e1234
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import axios from "axios";
export const axiosApi = (url: string | undefined) =>
axios.create({
baseURL: url,
withCredentials: true,
});

const baseUrl = process.env.NEXT_PUBLIC_BASE_URL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default function UploadModal({
const [file, setFile] = useState<File | null>(null);
const titleTextRef = useRef<HTMLTextAreaElement>(null);
const contentTextRef = useRef<HTMLTextAreaElement>(null);
const userData = useContext(UserDataContext);
const { validateLogin } = useAuth();
const { handleCloseOnClick } = useModalTriggerButtonContext();
const { onClick } = useModalTriggerButtonContext();
Expand Down

0 comments on commit 98e1234

Please sign in to comment.