From 042dc15d13c954340aa1a9126308d003aa72ea36 Mon Sep 17 00:00:00 2001 From: Lars Gierth Date: Wed, 2 Sep 2015 16:38:57 +0200 Subject: [PATCH] gateway: set CORS headers for https:// too License: MIT Signed-off-by: Lars Gierth --- solarnet/roles/ipfs/templates/config.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/solarnet/roles/ipfs/templates/config.j2 b/solarnet/roles/ipfs/templates/config.j2 index 9f1839e..b35d350 100644 --- a/solarnet/roles/ipfs/templates/config.j2 +++ b/solarnet/roles/ipfs/templates/config.j2 @@ -51,6 +51,8 @@ "Writable": false, "HTTPHeaders": { "Access-Control-Allow-Origin": [ + "https://gateway.ipfs.io", + "https://ipfs.io", "http://gateway.ipfs.io", "http://ipfs.io", "http://localhost", @@ -63,6 +65,8 @@ "API": { "HTTPHeaders": { "Access-Control-Allow-Origin": [ + "https://gateway.ipfs.io", + "https://ipfs.io", "http://gateway.ipfs.io", "http://ipfs.io", "http://localhost",