Added CORS to server.js - used node cors module, and allowed all domains to access POST on /data