검색엔진 xpack 설정이 걸려있을경우 curl -XGET 'localhost:9200/_cat/indices?pretty' 위 같은 명령어 실행 시 { "error" : { "root_cause" : [ { "type" : "security_exception", "reason" : "missing authentication credentials for REST request [/_cat/indices?pretty]", "header" : { "WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\"" } } ], "type" : "security_exception", "reason" : "missing authentication credentia..

참조: https://nankisu.tistory.com/67 CORS 에러: The request client is not a secure context and the resource is in more-private address space `local`. 웹서비스를 개발 하던 중 위와 같은 에러를 만났다. 서버 응답에 Access-Control-Allow-Origin: * 와 같은 CORS 허용 헤더를 다 넣어줬지만, 위와 같은 에러가 계속 발생했다. 알고보니 origin 보다, 더 낮은 nankisu.tistory.com 개발서버 -> 개발서버로 호출 시 도메인 주소가 달라 CORS 에러 발생 chrome://flags/#block-insecure-private-network-requests 에 ..
addEventListener로 이벤트를 추가했지만 remove 되지않을때 window.window.addEventListener('scroll', (e) => test1(e), true); window.window.removeEventListener('scroll', (e) => test1(e), true); 위와 같은 코드로 작성 시 remove가 동작하지않는다 (e) => test1(e) 이 함수를 서로 다른함수로 인식하기 때문 const test = (e) => { this.test1(e); } window.window.addEventListener('scroll', test, true); window.window.removeEventListener('scroll', test, true); 위와 ..
참조: https://egg-programmer.tistory.com/293 한글이 자소분리될 때 해결 방법(ㅎㅏㄴㄱㅡㄹ -> 한글) 운영체제마다 다른 '유니코드 정규화 방식' 대응하는 방법 업무를 진행하다가 파일 다운로드 시 'Windows' 환경에서 한글이 자음과 모음으로 분리되는 자음모음 분리 현상, 자소 분리 현상 이 발생 egg-programmer.tistory.com Mac에서 파일 첨부시 파일명이 ㅎㅏㄴㄱㅡㄹㄲㅐㅈㅣㅁ 위 처럼 한글이 깨진다면 const fileName = fileName.normalize('NFC'); 위 코드로 처리 가능
참조 : https://wooogy-egg.tistory.com/49 리액트 - history.push() 이후 refresh 안되는 문제 https://binaryjourney.tistory.com/15?category=916264 문제 현재 윗글 블로거 님의 글을 보면서 내가 개발하려는 서비스에 맞춰서 진행을 하고 있었다. (현재 개발하고 있는 서비스는 게시판 서비스와 동일하 wooogy-egg.tistory.com const customHistory = createBrowserHistory(); // thunk 미들웨어에서 history 객체 사용하기 위해서 const store = createStore(reducers, applyMiddleware(ReduxThunk.withExtraArgumen..
출처 : https://yoonho-devlog.tistory.com/163 Error: Reducer "A" returned undefined during initialization Error: Reducer "A" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If.. yoonho-devlog.tistory.com
master 브랜치에서 develop 브랜치 소스를 병합하려는데 이미 최신이라고 메세지가 나올경우 git diff develop diff 명령어로 확인 후 다시 git merge develop 병합해본다 그래도 안될경우 만약 develop 소스를 그대로 master로 옮기기만 하면 될때 git reset --hard develop git push --force origin master master 브랜치에서 develop 브랜치 소스로 reset 후 강제로 origin master로 소스를 올린다 그런데 이거한 후에 develop 브랜치로 가면 staging에 파일이 전부 삭제 되어있을수도 있으니 git stash 위 명령어 실행이 필요할수도 있다