Category

Node.js

Category

A Javascript application can only access the same origin HTTP request from the browsers. If you are developing a web application which does ajax requests to another server then you may be getting an error like No Access-Control-Allow-Origin header is present on the requested resource. What does the above line mean? It is simply saying that your web server is not sending back the headers that allow Cross-Origin Resource Sharing ( CORS ). In this article, I will show you how to enable CORS to a Node.js Express.js Framework. What Is Cross-Origin Resource Sharing Cross-Origin Resource Sharing is a mechanism…

Send Email Node.js

Email module is a very important feature of any web or mobile application. Every web or mobile application needs…

Developing a secure Node.js REST API is not a big task if you know how to deal with the JSON Web Token(JWT). Traditional authentication uses cookies and sessions but with the rise of single-page application(SPA), there is a need to look beyond this and JWT fits perfect for this. JWT based authentication is very simple, robust and scalable. That’s why it is so much popular among the node.js developers to secure node.js REST API with JWT. In this tutorial, we will learn how to build a secure node.js REST API using the JSON Web Token. If you are new in…

Every website or web application in the world needs a web server to serve the files. A web server is a system that processes via the HTTP Protocol in response to the client request. These days node.js server is so much popular and every developers and company want to use it. In simple word, the main purpose of the web server is to store and transfer the website data upon the request of the client. In this article, we are going to create a simple node.js server.  Before reading further this article, you must have a good understanding of the Node.js and installed…

Pin It