json - Shopify - SSL API CALLS do not work from http:// -
i try ajax-magic on landing-page of shopify-shop using shopify ajax api. calling shopify ajax api have use ssl, doing this:
$.getjson("https://api-key:password@mydomain.myshopify.com/admin/products.json?collection_id=9947999";, function(data) {...
that means i'm coming http (http://mydomain.net) using https (https://api-key:password@mydomain.myshopify.com) in ajax-call, not work.
any ideas?
hi tobi,
this bad idea. should not revealing api-key & password, doing here. let malicious mess aspects of shop.
one option might work set script on server control hit shop using jsonp.
you can find info on api offer ajax here: http://wiki.shopify.com/ajax_api
Comments
Post a Comment