Skip to content

Commit 8f10196

Browse files
committed
location protocol
1 parent 24f1e3b commit 8f10196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/common/service/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ let cutReq = (config) => {
4949
};
5050

5151
const instance = axios.create({
52-
baseURL: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
52+
baseURL: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
5353
timeout: 600000,
5454
withCredentials: true,
5555
headers: { 'Content-Type': 'application/json;charset=UTF-8' },

0 commit comments

Comments
 (0)