https://bkpk.me/peru-visa-for-indians/
The San Francisco consulate of India refused to process my spouse’s Indian visa because she was not resident in the US.
https://bkpk.me/how-we-finally-got-zaras-visa-to-india/
Several more examples but in this day and age you can just ask chat gpt to summarize for you. But if you check visa application requirements for many embassies, they will often say: proof of residence if not a national of the country of application. So that’s the requirement often.
I will add though that I’ve always maintained that this is a soft policy and they will make exceptions in some cases. It is mostly consulates wanting to do as little work as humanly possible. So there can be ways to get around it if you can talk to someone in charge. But usually that’s very difficult with consulates.
I’m pretty sure though in the US’ case now it’s a hard no. So there will be no working around it.