From 3d10470f215f9cadb9e4d3bf90e8986821c8f042 Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Fri, 5 Jan 2024 01:26:11 +0530 Subject: [PATCH] fix: fetch metadata over https to avoid mixed content error To avoid error: Mixed Content: The page at 'https://docs.aeternity.com/aepp-base-home-page/' was loaded over HTTPS, but requested an insecure resource 'http://migrate.aeternity.com/'. This request has been blocked; the content must be served over HTTPS. --- src/store/plugins/ui/appsMetadata.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/plugins/ui/appsMetadata.js b/src/store/plugins/ui/appsMetadata.js index 8bf60503e..de353172e 100644 --- a/src/store/plugins/ui/appsMetadata.js +++ b/src/store/plugins/ui/appsMetadata.js @@ -49,7 +49,7 @@ export default (store) => store.registerModule('appsMetadata', { actions: { async fetchManifest(_, host) { const fetchText = async (url) => (await fetch(url)).text(); - let appUrl = new URL(`http://${host}`); + let appUrl = new URL(`https://${host}`); if (appUrl.hostname === 'localhost') return {}; const parser = new DOMParser();