In fact rumor has it that a major reason for the Brexit campaign was that there was a threat of very costly corporate tax loopholes being closed in new EU wide legislation.
That rumour isn't accurate. The origins of the Brexit campaign are well documented and understood, tax doesn't feature in it. It came out of the rise of UKIP who campaigned primarily on immigration and sovereignty, with the two being intertwined because, immigration was said to be high due to the EU forbidding any controls on intra-EU migration. That rise combined with long term Tory euroscepticism pushed Cameron to promise a referendum to win over UKIP voters, a promise he made good on, and then the Remain campaign lost.