Jun 07, 2021, 10:12 AM
Custom headers with DirectMethod
As per title, is there a way to submit custom headers with a DirectMethod call?
requests
member. If your direct method has parameters, the config object should be placed after the last direct method parameter.App.direct.MyDirectMethod(myActualArgument, {
headers: {
'X-Custom-Header': 'Custom header value.'
}
});
Hope this helps!