Added support to cross origin requests

Just a convenient method to set the CORS headers.