added withcredentials to axios request
This commit is contained in:
@@ -6,6 +6,7 @@ import axios from 'axios'
|
||||
|
||||
export const REST = axios.create({
|
||||
baseURL: window.location.origin,
|
||||
withCredentials: true,
|
||||
headers: {
|
||||
Authorization: 'Bearer {token}',
|
||||
"Content-Type": "application/json"
|
||||
|
Reference in New Issue
Block a user