lushuncheng пре 6 година
родитељ
комит
51ce6f236c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      plugins/nuxtAxios.js

+ 1 - 1
plugins/nuxtAxios.js

@@ -10,7 +10,7 @@ export default function({ $axios, redirect, req, ...args }) {
 		}
 		console.log('Before, making request to ', config.url, config.baseURL);
 		const referer = req.headers.host || (config.headers.common && config.headers.common.referer);
-		const baseUrl = /https?/.test(referer) ? referer : 'http://' + referer;
+		const baseUrl = /https?/.test(referer) ? referer : 'https://' + referer;
 		const url = config.url;
 		// if (referer && !(/https?/.test(url))) {
 		if (typeof window === 'undefined') {