From e6c640774f1aad897ffcbebf06f114c00a6bbef7 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 10 Jan 2018 08:21:18 -0500 Subject: [PATCH] Use https to connect to algolia --- ext/manifest.json | 2 +- src/content/looped_in/content.cljs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/manifest.json b/ext/manifest.json index 7302288..4a7e049 100644 --- a/ext/manifest.json +++ b/ext/manifest.json @@ -25,5 +25,5 @@ "default_icon": "icons/icon48.png", "default_title": "Looped In" }, - "content_security_policy": "script-src 'self'; object-src 'self'; connect-src 'self' http://hn.algolia.com" + "content_security_policy": "script-src 'self'; object-src 'self'; connect-src 'self' https://hn.algolia.com" } diff --git a/src/content/looped_in/content.cljs b/src/content/looped_in/content.cljs index e1dec7b..36ca19d 100644 --- a/src/content/looped_in/content.cljs +++ b/src/content/looped_in/content.cljs @@ -9,7 +9,7 @@ "Fetches submissions from Hacker News by `url`" [url] (let [response-chan (chan)] - (GET "http://hn.algolia.com/api/v1/search" + (GET "https://hn.algolia.com/api/v1/search" {:params {"query" url "hitsPerPage" 1000 "restrictSearchableAttributes" "url"}