Connect middleware for adding contribute headers