플젝 작업하다, 콘솔창위에 문제1건 이렇게 메시지에서 문제: 몇건 이렇게 뜨는부분에서요.
저부분을 제가 자세히 잘몰라서 지금껏 제껴두고 있었는데,
비동기 작업으로 영화 장르별 메뉴클릭시 영화 목록을 axios로 가져와서 렌더링 시키고 있어요.
그런데 , 여기서 버튼클릭시 비동기 작업 될때마다 저 문제 건수 ?경고건수가? 계속 올라가더라구요.
내용은.
Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute.
Because a cookie’s SameSite attribute was not set or is invalid, it defaults to SameSite=Lax, which prevents the cookie from being sent in a cross-site request. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.
Resolve this issue by updating the attributes of the cookie:
Specify SameSite=None and Secure if the cookie should be sent in cross-site requests. This enables third-party use.
Specify SameSite=Strict or SameSite=Lax if the cookie should not be sent in cross-site requests.
이고, 구글번역으로 보니 대충 쿠키의 SameSite 속성을 바꾸라는듯 하였어요.
그래서 경고메시지를 구글링 하여 보니 서버에서 SameSite 속성을 변경 하는듯 하더라구요.
저는 서버를 만들지도 않았고...서버를 다를줄도 아직몰라서 이부분을 어떻게 수정하면 좋을지
궁금하여 쌤께 여줘봅니다.... 꼭 서버에서 변경을 하는건가요? 프로젝트는 작동은 되지만 저기 경고가 수가 계속 올라가는게 걸리더라구요 ....
제가 플젝에 예를들어 기능들을 계속 추가하면 느끼지는게 조금씩 속도가 늦어지는 듯하여.. 이부분도 조금더 빠르게 개선 하는 좋은 방법 있을까요??