Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- axios.get('URL.com', {
- headers: {
- Access-Control-Allow-Origin: *
- },
- auth: {
- username: 'username',
- password: 'password'
- },
- })
- .then(function (response) {
- console.log(response);
- })
- .catch(function (error) {
- console.log(error);
- });
- baseURL: 'https://www.yourserver.com.br',
- timeout: 10000,
- withCredentials: false
Add Comment
Please, Sign In to add comment