added support for Cross-Origin Resource Sharing for cross domain GET, POST, DELETE, etc.