Add cors to treat cross-origin requests

Added cors npm module.