.htpasswd - javascript authenticate with htpasswd and fetch json -
i have api generates json, problem password protected url, using apache htpasswd.
how can authenticate , retrieve json javascript, since methods have tried give me access deined (i've been using http://username:passwd@urldotcom/path/to/stuff)
thanks
i figured out how it.
var = jquery.ajax({ type: "get", url: url, username: "user", password: "password" });
url variable declared earlier of format http:///path/to/json
Comments
Post a Comment