As far as I know, the only cities full of apartments that prohibit short-term rentals are high CoL cities in the US and perhaps some parts of Europe. I've travelled all around the US, Latin America, Africa, and Asia without issue.
Before that, I was pretty lax with locking the door at night.