In today’s post, we’ll learn about Cross-Site Scripting (XSS), build a simple web server with Golang, and see how it can be attacked.
In the security field, a Content Security Policy (CSP) is one of the important methods used to harden website security. CSPs help prevent cross-site scripting (XSS) attacks and data injection attacks by restricting the sources from which web pages can load resources.
In web development, we often need to store and manage various data on the client side. In particular, when communicating with a server, we can store and use credentials or session information in the browser, and browsers provide several techniques for doing so. In this post, I’ll introduce you to the different ways to store data in the browser and their features.