I had this problem fairly recently.
Although Air Leak and or Carb settings are usually the problem, my recent backfire issues was cured by upgrading my Stator / Rotor. The problem was Spark issues. At first i had checked for air leaks, then swapped out my needle jet for one size up. That had "cured" the problem but really just made it overly rich.
Ultimately when i upgraded to the Sparx 3 and returned my carb settings to the original all the backfiring went away.