added decorator for cross-site HTTP requests