Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute

KoEunseo·2022년 11월 23일
0

fixErr

목록 보기
10/23

Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute

콘솔에는 안뜨는데 이런 에러가 뜨는 현상 등장.

export const getSpecificPalette = async ({ paletteCode }) => {
  const res = await axios.get(
    `${process.env.REACT_APP_BASIC_URL}/palette/P001`,
    { withCredentials: true }
  );
  return res.data;
};

이렇게도 해보고

axios.defaults.withCredentials = true;

이렇게도 해보고...

그래도 안됨.

회의하면서 좀 봐봤는데 다른분도 이런 에러를 봤었다고 함.

  1. import가 잘못함
  2. useEffect가 잘못함

인가 하다가.... 파라미터 받는 부분에 중괄호를 없애봄.
오... 된다. 저거때문이었나봄...ㅠㅠ

새로운 에러가 나긴 했지만 데이터를 받아오기는 하는 것 같아서!
다시 코드를 짜봐야할거같당 여튼 다행이다... 서버까지 가지 않아도 되는 문제라서...

profile
주니어 플러터 개발자의 고군분투기

0개의 댓글