api access refactored

This commit is contained in:
2020-07-14 22:27:13 +02:00
parent 5052e2b60e
commit 7cd3802bf7
13 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ import axios from 'axios'
// let path = 'http://' + window.location.hostname + (window.env === 'prod' ? '/api' : ':8984')
export const REST = axios.create({
baseURL: 'http://' + window.location.hostname + (window.env === 'prod' ? '/api' : ':8984'),
baseURL: 'http://' + window.location.hostname,
// withCredentials: true,
crossorigin: true,
headers: {