potential fix for login not working on production
This commit is contained in:
parent
cebe435fb2
commit
5f216318bf
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
import React, { useState, Suspense, lazy } from "react"
|
||||
import ReactDOM from "react-dom"
|
||||
|
||||
import axios from "axios"
|
||||
|
||||
import { BrowserRouter, Switch, Route } from "react-router-dom"
|
||||
|
||||
import Loader from "react-spinners/CircleLoader"
|
||||
|
@ -16,6 +18,8 @@ import "antd/dist/antd.min.css"
|
|||
import "./index.css" // must be loaded last
|
||||
import styled from "styled-components"
|
||||
|
||||
axios.defaults.withCredentials = true
|
||||
|
||||
const Home = lazy(() => import("./routes/Home"))
|
||||
const Dashboard = lazy(() => import("./routes/Dashboard"))
|
||||
const Modules = lazy(() => import("./routes/Modules"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue