Solved
Forum Discussion
severalservals
5 years agoNew Contributor
I figured it out with the help for a for-in loop to get the properties of the request object. The request object that requestInterceptor gets isn't the one that's described in the Fetch API. It's just got a headers array and you can add directly to it. So:
req.headers['authorization-token'] = 'myheadertokenvalue';
works fine.