From 981bdfedbd1f8bd5d1b70bd0a6d212171fedea58 Mon Sep 17 00:00:00 2001 From: VietAnh Date: Thu, 17 Sep 2026 21:22:20 -0700 Subject: [PATCH 01/20] Add Advanced Topics lesson --- nodeJS/final_project/advanced_topics.md | 96 +++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 nodeJS/final_project/advanced_topics.md diff --git a/nodeJS/final_project/advanced_topics.md b/nodeJS/final_project/advanced_topics.md new file mode 100644 index 00000000000..a280818bde8 --- /dev/null +++ b/nodeJS/final_project/advanced_topics.md @@ -0,0 +1,96 @@ +### Introduction + +As you work on more sophisticated web applications, there are certain security guidelines to keep in mind as you go. In this lesson, we'll briefly talk about them and how you can incorporate that into your Express application. + +### Lesson overview + +This section contains a general overview of topics that you will learn in this lesson. + +- Content Security Policy. +- Logging. +- Cross Site Request Forgery. +- Internationalisation. +- Cross-Origin Resource Sharing. +- Rate limiting. + +### Content Security Policy + +Depending on the app you are building, chances are you might want to limit what kind of resources are allowed on your it. Content Security Policy (CSP) is a feature that allows you to restrict what resources are loaded on your pages. This is important because it prevents a few common vulnerabilities: + +- **Cross-site scripting (XSS)**: the most common reason why you would want to employ CSP. You do not want to allow attackers to freely inject JavaScripts into your app and target your clients. +- **Clickjacking**: attackers could also embed certain HTML elements (such as `