Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pass query string in axios instance

pass it as params in axios instance

const axiosInstance = axios.create({

  baseURL: baseURL,
  timeout: 5000,
  params: {
    api_key : "xyz"
  },


  
});
Source by masteringjs.io #
 
PREVIOUS NEXT
Tagged: #pass #query #string #axios #instance
ADD COMMENT
Topic
Name
9+3 =