
Spring Security Lambda DSL Configuration Explained
Spring Security lambda DSL explained: why and() chaining was replaced, how to write authorizeHttpRequests, formLogin and csrf with lambdas.
Everything you need to level up your coding skills.

Spring Security lambda DSL explained: why and() chaining was replaced, how to write authorizeHttpRequests, formLogin and csrf with lambdas.

Fix CORS errors from a browser calling a Spring Boot API by configuring allowed origins, methods and credentials, with and without Spring Security.

Secure a Vaadin Flow application with Spring Security: the VaadinWebSecurity base, a login view, view access annotations and logout, with form login.

Prevent cross-site scripting in Java web apps with context-aware output encoding, safe template settings, a Content Security Policy and sanitizing rich text.

Stop path traversal by resolving user-supplied names against a base directory, normalizing and checking the result, and avoiding user input in paths.

Why native Java deserialization is dangerous, how gadget chains work, how to filter with ObjectInputFilter and what to use instead.

Stop SQL injection in Java by binding values with parameters in JDBC, JPA and Spring, allow-listing identifiers and limiting what the database account can do.

Fix a 403 Forbidden on POST, PUT and DELETE in Spring Security by sending the CSRF token, configuring it for APIs or checking roles and CORS preflight.

Accept file uploads in Struts 2 with size and type limits, safe file names and storage outside the web root, and know which settings and releases matter.

The security habits a Java backend needs: validate input, hash passwords, use SecureRandom, protect secrets, restrict deserialization and update dependencies.

Stop cross-site request forgery with Spring Security's CSRF tokens, SameSite cookies and Origin checks, and know when a stateless API can skip the token.

A Java security checklist to run before release: dependencies, secrets, authentication, input handling, transport, logging and containers.
We send one email when a new post is published. No spam.