added missing ";" on end of statements
support for simple string matching if there is no need for RegExps
performance optimizations - prepare all possible headers once on initialization instead of every middleware call
support for any methods/headers requested by client with simply providing boolean true in options
support for single string value in options.allowedOrigins
support for matching any origin by simply providing boolean true or "*" in options.allowedOrigins
console.log comments removed