Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios x-api-key for all

  const instance = axios.create({
    baseURL: "https://api.hello.com",
    headers: {
      "X-API-KEY": "hello"
    }
  })
  const res = await instance.get<{}, AxiosResponse<string>>("/world");
 
PREVIOUS NEXT
Tagged: #axios
ADD COMMENT
Topic
Name
6+3 =