The article says there aren't too many useless comments but the code has:
// Get the Origin header from the request
const origin = request.headers.get('Origin');