This won’t work. You have to be in the city or prove that the job is there. A salesman who goes to NYC several times a month for his job, may have to pay NYC taxes for his income. But If he never has to go there, they can’t do anything. There are lots of people who live just outside of NYC and never or rarely come into the office and don’t pay city tax.
Of course you will have to fight your employer. Your employer may list you has a person who works in that state or city. And fighting it may be too hard. But both the employer and you should be on the same page as both of you will likely have to pay a tax in the city.
And remember you will have to pay taxes somewhere. And only one place.
I work from home in FL, company is in MD. When I moved to FL they stopped taking MD taxes out. FL has no state tax so BIG WIN for me.