Language: JavaScript. The pull request has one bug. You get three tries to find the line, then a short debrief.
Marketing launched the new web app on its own domain, shopapp.example, and it calls our API at api.shop.example with the customer's session cookie. Browsers block that unless the API answers with CORS headers naming the exact origin, and unless the cookie is allowed on cross-site requests. This PR does both.
Codetrap needs JavaScript: the code review happens in your browser.