(fix): cors support and origin whitelisting (#26)
(fix): cors support and origin whitelisting (#26)

* (fix) passing corsOpts to cors, regex checking origin header against whitelist

* added comment

* checking if result != null to prevent potential null reference errors

wzr1337/viwiServer,wzr1337/rsiServer,wzr1337/viwiServer