반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- next.js
- typescript
- 회고
- 생각일기
- react
- mongoose
- js
- Git
- 코테
- Grafana
- array
- WIL
- til
- nest.js
- MongoDB
- 네트워크
- 자바스크립트
- 알고리즘
- mongo
- 생각로그
- javascript
- 생각정리
- 기록
- 주간회고
- 리눅스
- 트러블슈팅
- 피드백
- CS
- mysql
- Java
Archives
- Today
- Total
코딩일상
오류해결 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] (2) | 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