I’m not up to speed with Angular JS and am struggling with the the example suggested. are there any further resources? or am I looking at finding a dev for this?
If you don’t need the cache-control part, and jQuery under Chrome doesn’t like this, just drop that? (apologies, we don’t use jQuery to communicate with CH).
You need to send the authorization, but setting other headers which aren’t supported via AJAX seems to be a common cause of problems.
If this still doesn’t work have look around on the forum you’ll find lots of other examples of people using jQuery to access CH - hope one of these will work for you.
Hmm… I guess your code is slightly schematic as I’m surprised it worked at all as listed (although I’m not an expert on jQuery ajax function!). I think all you need in the settings object is:
That last part is showing that you’re using http “basic” authentication with a base-64 encoded username:password string (e.g. empty password as CH only supply username) as per: