Use https to connect to algolia

This commit is contained in:
Jeremy Dormitzer 2018-01-10 08:21:18 -05:00
parent b400e2d1c4
commit e6c640774f
No known key found for this signature in database
GPG Key ID: 04F17C0F5A32C320
2 changed files with 2 additions and 2 deletions

View File

@ -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"
}

View File

@ -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"}