My API uses the Accept-Language header to get it's current language which returns the json translated. Never mind that.
How can i change the header with angularJS/Javasctipt. I tried this:
$http.defaults.headers.post["Accept-Language"] = "bs-Latn-BA";
but it doesn't seem to work, are there any other alternatives?