arvin před 6 roky
rodič
revize
dec63073a2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 = config.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') {