3rd-party cookies phase out, localhost testing

Hi, we have been using custom domains to avoid any issue with browsers blocking 3rd-party cookies, but with chrome phasing them out, we now have an issue with localhost testing as localhost won’t match any custom domain, what is the best practice in this case?

FWI, we currently use the SDK for React SPAs.