NodeJS

NodeJS : Writing Simple Program in NodeJS

In NodeJS is Server side program. It similar to JavaScript, It will create the servers. These servers help to serve request based on our requirements. In NodeJs we need to install required modules with help of npm(Node Package Manager). It will maintains packages that are helps to extend our functionality.

NodeJS : Solving Cross Origin(CROS) Request Block with Code

In NodeJS we try to access the request from unknown URL(for example localhost) it blocks our request and return CROS error on browser. This type of errors are normally arise from Chrome browsers. To resolve this blocking we need to inform our express app to allow headers with specified access methods. Normal allowing methods are “PUT, GET, POST, DELETE, OPTIONS”.