Guest User

Untitled

a guest
Oct 27th, 2017
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. axios.get('URL.com', {
  2. headers: {
  3. Access-Control-Allow-Origin: *
  4. },
  5. auth: {
  6. username: 'username',
  7. password: 'password'
  8. },
  9. })
  10. .then(function (response) {
  11. console.log(response);
  12. })
  13. .catch(function (error) {
  14. console.log(error);
  15. });
  16.  
  17. baseURL: 'https://www.yourserver.com.br',
  18. timeout: 10000,
  19. withCredentials: false
Add Comment
Please, Sign In to add comment