Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const config = {
- headers: {
- 'content-type': ''x-www-form-urlencoded''
- },
- auth: {
- username: 'root',
- password: 'root'
- }
- };
- axios.get("http://localhost:5000/image/student/",config, {
- auth: {
- Username: 'root',
- Password: 'root'
- }
- })
- .then((response) => {
- alert("success");
- }).catch((error) => {
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement