Your question is CORS and OAuth for Web Apps. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Explain what CORS is, how OAuth works, and how OAuth 2.0 differs from OAuth 1.0.