Skip to content
Sharp

Spring Security · interview question

When configuring Spring Security, which filter should be placed first in the filter chain to handle pre-flight requests?

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

Correct answer

D. CORS Filter

Why

The CORS Filter should be placed first to handle pre-flight requests, which check permissions for cross-origin requests before the main request is processed.

Test yourself on Spring Security

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

Start free test
All Spring Security questions →