Question 660
At fictional Larkstone Media, a software-security team is conducting a secure acquisition and deployment review without interrupting essential service availability. The case observation is: An authenticated API reflects any Origin header and permits credentialed browser requests from unrelated sites. The team must select a defensible control or assessment. Which repeatable engineering safeguard would most directly reduce recurrence?
Explanation
Writer-proposed answer: D (UNVERIFIED)
Preliminary individual option explanations — NOT expert validated
Correct Answer
CORS is a browser access policy and should be tightly scoped; it does not replace API authorization. Cross-origin tests deny unauthorized websites while permitted application origins function normally.
Incorrect Answers
This response concerns queue consumer permissions. Here, an authenticated API reflects any Origin header and permits credentialed browser requests from unrelated sites. The confirming evidence is: Cross-origin tests deny unauthorized websites while permitted application origins function normally.
Distributed trace secret exposure concerns a different operational mechanism. CORS is a browser access policy and should be tightly scoped; it does not replace API authorization.
Focusing on api gateway authentication mismatch would leave this problem unresolved: An authenticated API reflects any Origin header and permits credentialed browser requests from unrelated sites.