The tech company in Costa Rica I work in started work from home just a couple of months before the pandemic started and we've been doing that ever since except a few instances where I have had to go into the office for a few meetings although in hindsight these meetings could also have been done virtually. The last time I went for such a meeting was about 4-5 months ago and haven't been to the office since and continue to WFH. Recently I wanted to travel for a couple of weeks to the US. My flights are on weekends and I did not want to take days off as I planned to work from there. However, when I informed my boss about it, they weren't not happy because apparently it was breaking certain protocols of WFH.
My question is, do other companies (software companies specifically) force or make it mandatory that work from home means that you stay at home and no other sites or are employees free to work from anywhere in a WFH setting? The question maybe broad but I want to understand the general consensus on how things work. I tried to check online but nothing explains this specific point of whether they "have to" be at home and no other place.
It is a company protocol in my case and I am not asking if I'm in the right or not to work from anywhere as I see fit. What I want to know is what is generally allowed elsewhere and if this restriction is only in my company or do others also have this. Because certain places I have interviewed with said I could work from the beach or a hotel or my home or my car as long as I am reachable.
UPDATE: Based on some comments about whether I am allowed to work in a country that is not foreign, I am from Asia and as per my contract I am offered a flyback once a year for about 3-4 weeks and this has existed for more than a couple of years before the pandemic. During this flyback, I do work from my home country as per the Costa Rican time, I worked at night.
So far the concern that I understand from my boss's perspective is that this is not something that is offered for everyone. So, if they allow me, the soon others might follow suit and that apparently could be a problem for them in terms of insurance etc.
Also some answers are pointed at what I mentioned "Not asking if I'm in the right" or also "If it is ok". My question is mainly to understand what it means to Work from home for other companies/countries in general and what is allowed. The answers are truly interesting.