arvin %!s(int64=6) %!d(string=hai) anos
pai
achega
dec63073a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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') {