반응형
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 |
Tags
- array
- CS
- mysql
- 자바스크립트
- 기록
- mongo
- 리눅스
- 주간회고
- 피드백
- til
- typescript
- 생각일기
- 회고
- mongoose
- WIL
- MongoDB
- 네트워크
- Java
- 생각정리
- Grafana
- nest.js
- Git
- 알고리즘
- 트러블슈팅
- js
- 생각로그
- javascript
- react
- next.js
- 코테
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] (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