According to Star Wars Battlefront II developers, they are aware of the AFK farming currently going on in the game, and plan on fixing it with a server side update (aka no patch required).
Replying to a big thread on EA's Battlefront II forums, developer Sajukaar confirmed that DICE is well aware of the widespread AFK farming and is working to fix it.
EA Releasing Update To Star Wars Battlefront 2 To Increase Payouts
How To Get Credits Quickly In Star Wars Battlefront 2
There is no information on how the exploit will be fixed, but all bets point towards it merely treating the symptom rather than the disease. More as it develops.