[React] Router Custom, Router를 사용한 사용자 권한 체크
로그인 기능을 갖춘 페이지 구현시, URL 에 경로를 입력해서 들어오는 비정상적 접근을 차단해야하는 경우 사용할 수 있음 return ( ); } const RouteAuthChek = ({ auth, url, component: Component, ...rest }) => { //redux 불러오기 const [show, setShow] = useState(false); return ( { // DB에서 권한 체크 axios .post(`${db}/path...`, { auth: auth, url: url }) .then((response) => { setShow(response.data); }) .catch((err) => { console.log(err); }) .finally(() => {}); ..
Web
2021. 11. 12. 09:27
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- ec2 instance connect is unable to connect to your instance. ensure your instance network settings are configured correctly for ec2 instance connect. for more information
- Express multer #Express File 저장 #node.js
- linux/amd64/v2
- 이미지 전송 # 이미지 업로드 #이미지 여러장 #이미지 여러장 업로드 #react 이미지 업로드 #react 이미지 여러장 업로드
- PoolCluster : Error: connect ECONNREFUSED 127.0.0.1:3306)
- node.js #node.js pdf만들기 #node.js pdfkit
- docker # docker build # m1 docker build
- Pytorch #Yolov5 #Segementation
- BOJ #JS
- FormData #FormData 파일전송 #FormData append json # React FormData File #React FormData append Json
- react #img 전송
- supported: linux/amd64
- PDF #pdfkit
- JavaScript #Programmers #lvl2 #프로그래머스 오픈채팅방 # 오픈채팅방 문제
- Procedure #mysql #mysql Procedure #mysql 반복문 #Procedure 반복문 #mysql insert 반복문
- excel 파일 만들기 #node.js #express excel 파일 만들기 #데이터 입력해서 excel 파일 만들기
- mysql date between # mysql date between 대소 비교 연산자
- mysql date type
- Swal #sweetalert2 #alert #알림창 띄우기 #react swal
- React filter #js Includes #React Filter includes
- react #react-spinners #modal loading #overlay #로딩창 #react 로딩창 만들기
- node.js 파일 저장
- AWS #인바운드 #SSH #인스턴스 연결
- ERROR: failed to solve: no support for running processes with linux/amd64/v3 platform
- reack-cookies #아이디 저장하기 #react 아이디 저장 #react cookie #리엑트 아이디 저장하기
- mysql date
- docker mysql
- mysql date between performance
- see ec2 instance connect prerequisites at https://docs.aws.amazon.com/awsec2/latest/userguide #인스턴스 연결 안됨
- Mac docker.for.mac.host.internal
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함