Aurelia: configure fetch client
I use Aurelia's fetch client to communicate with my server. In every viewModel using the fetch client I have to configure it the client to use an interceptor to send a custom header(a token). Is there a way to configure the fetch client once somewhere instead of rewriting the interceptor code in each viewModel. You could put the configuration in the main.js file. Like this: ... aurelia.use .standardConfiguration() .developmentLogging(); let container = aurelia.container; let http = new HttpClient(); http.configure(config => { config .useStandardConfiguration() .withBaseUrl('http://localhost