This is a tough one.
When I started my prepared meal delivery service in Toronto, there was no way to make it legit working from home. I also was a vendor at a farmers' market and the only prepared products that were able to legit be made in a home kitchen were products made on a farm. Otherwise, everything needed to be made in a commercial kitchen.
Most small food businesses start out of a home kitchen until a time when they can kitchen-share with a restaurant or it becomes worthwhile to rent commercial kitchen space at a commissary.
My gut says that there likely isn't a way to make it legit, but it could depend on what city you live in.
If you were doing in-home/private chef services, this is a different story, as the food is being made onsite. This type of service requires a standard business license and food handling certifications. A permit would be required if you had a food cart or truck, as well.
I'd be happy to answer any other questions relating to this with a complimentary call. Contact me if you're interested.