A free program from Microsoft that provides developers with the tools, resources, and sandbox environments needed to build solutions for Microsoft 365.
Since you've already tried multiple browsers and cleared cookies, it may be worth checking whether your GitHub account already has an existing Microsoft authorization under GitHub > Settings > Applications. You could also inspect the failing request in your browser's Developer Tools (Network tab) to identify which URL is returning the 404 error. If the OAuth callback consistently returns 404 across different devices and networks, it may indicate a service-side issue, in which case including the failing URL (without sensitive tokens), timestamp, and screenshots when contacting the Microsoft 365 Developer Program team could help them investigate.