Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. const config = {
  2. headers: {
  3. 'content-type': ''x-www-form-urlencoded''
  4. },
  5. auth: {
  6. username: 'root',
  7. password: 'root'
  8. }
  9. };
  10. axios.get("http://localhost:5000/image/student/",config, {
  11. auth: {
  12. Username: 'root',
  13. Password: 'root'
  14. }
  15. })
  16. .then((response) => {
  17. alert("success");
  18. }).catch((error) => {
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement