source: frontend/src/axios.js@ e6c2521

Last change on this file since e6c2521 was e6c2521, checked in by darsov2 <62809499+darsov2@…>, 6 months ago

images upload/download impl, other fixes

  • Property mode set to 100644
File size: 358 bytes
Line 
1import axios from "axios";
2
3
4const instance = axios.create({
5 baseURL: "http://localhost:8080/",
6 withCredentials: true,
7 maxRedirects: 1,
8 beforeRedirect: (options, { headers }) => {
9 console.log(options)
10 if (options.hostname === "example.com") {
11 options.auth = "user:password";
12 }}
13
14})
15
16export default instance
Note: See TracBrowser for help on using the repository browser.