middleware: Adding the possibility of specifying regexes for whitelisting URLs
middleware: fixing typo