dijs / wiki

Wikipedia Interface for Node.js
MIT License
313 stars 62 forks source link

HTTPS support #65

Closed utsavnarayan closed 6 years ago

utsavnarayan commented 6 years ago

The API requests to Wikipedia are being made over HTTP. Due to this browsers are blocking the requests due to blocked:mixed-content error.

Refer https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content/How_to_fix_website_with_mixed_content

I can create a pull request if you would like to include support for HTTPS requests or for making all requests over HTTPS only.

dijs commented 6 years ago

We already support other wiki URL's through the configuration object.

wiki({ apiUrl: 'https://awoiaf.westeros.org/api.php', origin: null }).search('Winterfell');

utsavnarayan commented 6 years ago

Thanks! I didn't know about that.