CHICAGO—Tiffany Kurtz was cruising the downtown streets here in her powder-blue van when a group of women flagged her down.

She punched her hazard lights on, pulled into a loading zone and began selling her wares. Within minutes, a police officer rolled up with his lights flashing.

"We're stopping the sale of cupcakes," she recalls him saying,...