나무모에 미러 (일반/어두운 화면)
최근 수정 시각 : 2026-06-27 22:06:36

axios

<colbgcolor=#5A29E4><colcolor=#fff> axios
파일:axios-logo.svg
종류 HTTP/클라이언트
라이선스 MIT 라이선스
언어 JavaScript
버전 1.15.0
링크 파일:홈페이지 아이콘.svg | 파일:GitHub 아이콘.svg파일:GitHub 아이콘 화이트.svg
1. 개요2. 예시 코드3. 특징
3.1. 장점3.2. 단점
4. 2026년 axios 공급망 공격 사건5. 관련 문서

1. 개요

JavaScript웹 클라이언트 라이브러리. 원격 데이터를 fetch하는 JavaScript 라이브러리이며 React(라이브러리)Vue.js와 같은 현대 웹 환경에서 서버를 비롯한 원격 데이터를 받아오는 fetching을 할 때 이 라이브러리가 흔히 사용된다.

axios의 발음은 외국인들도 가끔 헷갈리기도 하는데 액시오스(IPA: /ˈæksiɒs/)라고 발음하면 된다.[1]

2. 예시 코드


#!syntax javascript
const axios = require('axios');

// Make a request for a user with a given ID
axios.get('/user?ID=12345')
  .then(function (response) {
    // handle success
    console.log(response);
  })
  .catch(function (error) {
    // handle error
    console.log(error);
  })
  .then(function () {
    // always executed
  });

// Optionally the request above could also be done as
axios.get('/user', {
    params: {
      ID: 12345
    }
  })
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  })
  .then(function () {
    // always executed
  });  

// Want to use async/await? Add the `async` keyword to your outer function/method.
async function getUser() {
  try {
    const response = await axios.get('/user?ID=12345');
    console.log(response);
  } catch (error) {
    console.error(error);
  }
}

3. 특징

3.1. 장점

3.2. 단점

4. 2026년 axios 공급망 공격 사건

현지시각 2026년 3월 31일, 북한과 관련된 해커들이 공급망 공격으로 소스코드에 원격 접근용 트로이안 악성코드를 심어 놓은 사건이 발생했다. 공격자는 북한 정찰총국 제121국과 연관되어 있는 것으로 추정되는 해커 집단이다.
파일:상세 내용 아이콘.svg   자세한 내용은 2026년 axios 공급망 공격 사건 문서
#!if (문단 == null) == (앵커 == null)
를
#!if 문단 != null & 앵커 == null
의 [[2026년 axios 공급망 공격 사건#s-|]]번 문단을
#!if 문단 == null & 앵커 != null
의 [[2026년 axios 공급망 공격 사건#|]] 부분을
참고하십시오.

5. 관련 문서


[1] 미국의 뉴스 웹사이트인 Axios 또한 악시오스가 아닌 액시오스로 발음한다.