Skip to content
Sharp

Spring Security · interview question

How does Spring Security handle a request identified as a potential CSRF attack?

Multiple choiceEasychapter-17-curatedpremiumspring-securityspring-security-filter-chain
Choose one answer
Answer and explanation

Correct answer

B. Returns an HTTP 403 Forbidden error.

Why

Spring Security returns a 403 Forbidden error for requests identified as potential CSRF attacks, effectively blocking the request and protecting the application.

Test yourself on Spring Security

A free test with instant, explained results. No account needed.

Start free test
All Spring Security questions →