Closed mustela closed 8 years ago
I didn't find a way to do it through angular-jsonapi, but this is how I did it:
$http.defaults.headers.common['X-API-TOKEN'] = 'XXXXXXXX'
$http.defaults.headers.common['Accept'] = 'application/vnd.api+json'
$http.defaults.headers.post['Content-Type'] = 'application/vnd.api+json'
$http.defaults.headers.put['Content-Type'] = 'application/vnd.api+json'
Thanks! I did the same thing.
As far I can see, it is not possible to set a custom header for the resources calls, right? If not, is there any workaround?
Thanks!