Used cors in express.js,but I am not clear about this.What is the purpose of using cors in express.js ?
Cross-origin(cors) resource sharing allows ajax requests to skip the Same-origin policy and access resources from remote hosts. Cors is use as a Intermediary. To communication to different port.