I asked your question on the tor-talk mailing list and got the following reply from one of the creators of Tor itself:
You should really avoid making exceptions to the proxy rules for Tor
Browser. If you let your browser connect to local services, that opens
the door for remote websites, which you access over Tor, to give you
instructions (e.g. via ...