Kinjal Gor
Kinjal Gor

Reputation: 421

How to set custom headers with a $resource POST action?

headers for $resource is available since AngularJS

The format is

$resource('url/to/json', {}, {
    get: {
        method: 'GET',
        headers: { 'something': 'anything' }
    }
});

Above is working for Get Method but i would like to set custom header with $resource POST method

Upvotes: 0

Views: 63

Answers (0)

Related Questions