Middleware to send header on each spore request