Updated CORS functions
Merge pull request #3 from Scorpiion/master

Updated CORS functions