see definition for "permanent establishment"
if your home office qualifies as a permanent establishment, then you do need to pay the state tax. the definition varies a little bit. but if a corporation's head quarter in another state, then more than likely it has a permanent establishment in the other state.