Summary
In this chapter, I described two important ways in which the backend Node.js server works with the other components in a modern web application. The first topic I described was the use of a bundler:
- Bundlers combine and compress multiple files to reduce the number of HTTP requests made by the browser and reduce the amount of data to be transferred.
 - Bundlers are integrated into the developer tools for all of the popular client-side frameworks, including Angular and React.
 - Bundlers can work independently of the backend server, but the best workflows are achieved by using them together.
 - The second topic I described was the application of a content security policy.
 - Content security policies are used to defend against cross-site scripting (XSS) attacks, in which the goal is to trick the browser into executing malicious JavaScript code.
 - To apply a content security policy, the backend server provides the browser with a description of how the...