A 45-second cap on a 90-second job
Static Web Apps cuts off proxied API calls at 45 seconds, but a comparison can take 30 to 90 seconds while the ML models load after idle. So the browser calls the API directly with its own Microsoft token instead of going through the proxy. That led to sign-in in three layers: the site, a token check in the API, and an ML service that only accepts traffic from the API's servers.
