a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment by rinx
rinx  ·  3143 days ago  ·  link  ·    ·  parent  ·  post: Hubski prototypical API is here

Can we make it work for HTTPS as well? Google is yelling at me about Cross-Origin XMLHttpRequests.





rob05c  ·  3143 days ago  ·  link  ·  

It's on the list, but HTTPS is hard-ish. But CORS is easy, and needed done anyway. I added CORS headers. See if that helps.

In past experience, I found CORS headers without HTTPS work with about half of browsers, and about never with HTTPSEverywhere.

rinx  ·  3130 days ago  ·  link  ·  

Still getting this :

Mixed Content: The page at 'https://hubski.com/pub?id=266825' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://api.hubski.com/publication/266844'. This request has been blocked; the content must be served over HTTPS.

rob05c  ·  3130 days ago  ·  link  ·  

Yeah, it seems to depend on the browser, and even the version. It'll support HTTPS eventually. But right now my top priorities are a donate button, and speeding up load times.

rinx  ·  3130 days ago  ·  link  ·  

No worries, I have a workaround in the meantime. Just letting you know!