dopecodez / Wikipedia

Wikipedia for node and the browser
MIT License
82 stars 19 forks source link

Won't load in a secure context (https) #26

Closed marcellobarile closed 3 years ago

marcellobarile commented 3 years ago

Mixed Content: The page at '{APP_DOMAIN}' was loaded over HTTPS, but requested an insecure resource 'http://en.wikipedia.org/w/api.php?list=search&srprop=&srlimit=10&srsearch={QUERY}&format=json&redirects=&action=query&origin=*&'. This request has been blocked; the content must be served over HTTPS.

dopecodez commented 3 years ago

Ah, thanks for pointing that out.

In request.ts, we are using http and not https. This should ideally be in a secure context.

Simple fix, will require some manual testing to make sure the routes work with https.