Could you zig zag stitch over some fine wire on the inside of your cookies along the very edge?
Or make a cookie sandwich, fabrics right sides together with fusible on the back of one, lay the wire around the edges and fuse it all together. Just a thought.