CORS, XSS, CSRF, SQL injection #BackToTheBasics
summary
Describes web security basics: CORS enforces origin+port+scheme and uses OPTIONS preflight with Access-Control headers, and misconfigured servers or tools like curl/proxies can bypass naive checks. Shows XSS caused by rendering URL parameters with React’s dangerouslySetInnerHTML and recommends Content-Security-Policy to restrict external scripts. Defines CSRF as forged requests mitigated by per-request tokens, and demonstrates SQL injection via a newsletter form, advocating use of prepared statements.
AI-written summary · about
chapters (10)
- 0:00Web security basics
- 1:12Security in development
- 2:58CORS mechanism
- 4:49Optimizing CORS preflight
- 7:59XSS risks
- 10:16XSS with React
- 12:28Preventing XSS with CSP
- 13:37CSRF mechanism and risks
- 15:31SQL injection risks
- 17:19Preventing SQL injection








