반응형
Notice
Recent Posts
Recent Comments
Link
코딩일상
오류해결 Indicate whether to send a cookie in a cross-site request by specifying its SameSit(로그아웃 쿠키 제거) 본문
기록/Troubleshooting
오류해결 Indicate whether to send a cookie in a cross-site request by specifying its SameSit(로그아웃 쿠키 제거)
solutionMan 2022. 7. 13. 14:50반응형
로그아웃
에러 내용
Indicate whether to send a cookie in a cross-site request by specifying its SameSit
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.js"></script>
function sign_out() {
$.removeCookie('mytoken', {path: '/'});
alert('로그아웃!')
window.location.href = "/login"
}
<nav>
<div class="b">
<button onclick="sign_out()">로그아웃</button>
<button onclick="go_posting()">동네정보입력</button>
<button onclick="go_user()">마이페이지</button>
</div>
</nav>
반응형
'기록 > Troubleshooting' 카테고리의 다른 글
[오류 해결] CastError: Cast to ObjectId failed for value "값" at path "_id" for model "모델명" (0) | 2022.08.02 |
---|---|
PM2 stop/ kill 하는법 (0) | 2022.07.26 |
코드 오류[Function: getDay] (0) | 2022.07.16 |
mac에서 home brew 에러 발생시 (zsh: command not found: brew)(22.07.08) (0) | 2022.07.08 |
[TIL]몽고 db 연결 오류 해결법(항해 99) pymongo.errors.ServerSelectionTimeoutError: ~ [SSL: CERTIFICATE_VERIFY_FAILED]~ (0) | 2022.06.28 |
Comments