added dev machine host for cors
added check to prevent exception
Merge pull request #77 from kapilgoenka/master

added dev machine host for cors + added check to prevent exception