Skip to content
Sharp

Spring Security · interview question

Which Spring Security filter is responsible for handling CORS preflight requests?

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

Correct answer

C. CorsFilter

Why

The CorsFilter is specifically designed to handle CORS preflight requests, ensuring that cross-origin HTTP requests are handled securely. It checks the origin of requests and determines if the server should allow them.

Test yourself on Spring Security

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

Start free test
All Spring Security questions →