I'm not an advocate at all of making food forbidden. Seriously, try giving yourself permission to have some. But follow these rules:
Only eat a treat or anything else when you are hungry
Savor it, really enjoy the taste. You'll find far less satisfies you (or hey, I don't really like this!) when you actually taste it. It's been said the only time an overweight person doesn't think about food is when they are eating it, and I know it was certainly true of me!
And, finally, stop eating when you're full! It takes some practice at recognizing when that happens if you've been ignoring the signals for the decades I have been doing it, but I'm getting there. And when I do overeat, I find the discomfort is purely in my stomach and not because I overate to an extent that doing something like loosening my pants helps.
Seriously, the more you try to deny yourself a treat, the more likely you are to binge -- probably on something far less satisfying than a homemade treat.
And if you like it, instead of thinking this is the only time I'll ever get it so I need to eat lots and lots of it, ask for the recipe and promise yourself you'll make it every single time you want it! Hey, I went from being practically addicted to ice cream to going days at a time without touching it, then having a small bowl when I do, simply because I gave up the cycle of gorging myself on ice cream, throwing out what little was left because I'd never do that again only to buy more and do it all over again!