allow middleware on localhost
Merge pull request #37 from bartoszkopinski/master

allow middleware on localhost