โ† Web & Frontend
#8 most askedVery commonMediumWeb security

What is CORS?

๐Ÿข Asked in real interviews
No reports yet. Were you asked this? Be the first to say where.
I was asked this

Your frontend at app.com calls an API at api.com and the browser blocks it with a CORS error. Explain what's happening and how to fix it.

๐Ÿงญ A preflighted cross-origin request
Page on app.com
Browser
api.com
Press Next to follow a request through the system.

๐ŸŽค Answer it out loud, then check yourself

Say your answer as if the interviewer is listening (30โ€“90 seconds). Then reveal what a strong answer covers and tick what you said.

    Answer out loud first, then compare.
    Want to rehearse it?
    Answer this to the AI interviewer and get a verdict โ†’