https middleware for coverstore-server.