We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d2afbb + 8f10196 commit dc0ec1aCopy full SHA for dc0ec1a
web/src/common/service/api.js
@@ -49,7 +49,7 @@ let cutReq = (config) => {
49
};
50
51
const instance = axios.create({
52
- baseURL: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
+ baseURL: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
53
timeout: 600000,
54
withCredentials: true,
55
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
0 commit comments