obihill / restive.js

a designer-friendly jQuery toolkit for responsive Web design
http://www.restivejs.com
MIT License
513 stars 113 forks source link

Calling restive from https #29

Closed lionelbzv closed 8 years ago

lionelbzv commented 9 years ago

Using restive over "https" protocol causes this error at first call

Mixed Content: The page at 'https://mywebsite.com/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.restive.io/ping/ua.php'. This request has been blocked; the content must be served over HTTPS.

Possible to update the script to make an https endpoint call?

obihill commented 9 years ago

A few questions to help in getting a better idea of your setup:

  1. What version of Restive.JS are you using?
  2. What browser and operating system are you testing this on?

Thanks.

lionelbzv commented 9 years ago
  1. v1.3.1
  2. FF/Ubuntu

I think this problem is easy to fix, just update protocol "http" to "https" in https://github.com/obihill/restive.js/blob/master/restive.js#L3163

obihill commented 9 years ago

Thanks for the info.

There was an issue earlier on with the regex; it was built for proxy browsers but Linux systems were actually executing the XHR script wrongly.

The issue was fixed after version 1.3.1 though (as you can probably tell in the link you provided). Could you use the latest build i.e. 1.3.5?

Let me know if you still have issues after that.

lionelbzv commented 8 years ago

Ok thanks a lot