Repository navigation
|
REST api, using axios. Configured like this: the header part is just to test and indeed, this header is passed always. The request like this: Does not pass the header. Tested in browser. |
Answered by
daffl
Oct 14, 2022
Replies: 1 comment 1 reply
|
The correct method call is const sr = await this.$restApi.service('users').find({
headers: {
accesstoken: '-this is a new token-'
}
})You passed an empty object as the first argument which already is the |
1 reply
Answer selected by
SharpBCD
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The correct method call is
You passed an empty object as the first argument which already is the
paramsobject forfindcalls.