메모장

  • 홈
  • 태그
  • 방명록

react port 1

axios/CORS/Proxy

client를 구현하기 전에는 postmen 이용하여 request 보냈는데 이제 client가 있기 때문에 axios를 이용하여 요청 보냄. axios(엑시오스)는 jquery에서 ajax 같은것. 1. axios 설치 npm install axios --save 2. 테스트 라우터 생성 LandingPage.js import React, { useEffect } from 'react' import axios from 'axios' function LandingPage() { useEffect(() => { axios.get('/api/hello')//서버측으로 주는 엔드포인트, 서버측 index.js에 get라우터 구현 .then(response => console.log(response.data))..

Frontend/react 2022.07.19
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (308)
    • Frontend (109)
      • javaScript (33)
      • react (30)
      • vue3 (25)
      • angularjs (2)
      • jquery (4)
      • html (4)
      • css (3)
      • HTTP 통신 (8)
    • gridLib (24)
      • auiGrid (2)
      • agGrid (7)
      • jqGrid (15)
    • Backend (70)
      • JAVA (26)
      • spring (Boot) (29)
      • spring cloud (MSA) (10)
      • tomcat (2)
      • API (3)
    • DB (26)
      • 데이터 관리 (6)
      • RDBMS (16)
      • NoSQL (4)
    • python (2)
    • study (43)
      • 클라우드&쿠버네티스 (7)
      • 보안 (6)
      • 알고리즘 문제 풀이 (28)
      • 네트워크 (2)
    • tool (5)
      • git (5)
    • error (13)

Tag

KINX, 백준, 프로그래머스 dfs bfs, redis, error, JavaScript, Spring Security, 2024 데브크루, 프로그래머스 정렬, jqgrid, Python, softeer, MSA, dfs, JWT, BFS, dfs bfs, vue emit, mybatis, 프로그래머스,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

Copyright © AXZ Corp. All rights reserved.

티스토리툴바