Question about attaching a strap

I am close to finishing my first bag, and have sewn the seams on the bag. What is the best way to attach the strap to the bag so they are secure? The strap is i-cord, and I made sure to leave extra yarn at both ends.


I think the most secure way is to sew it down with a sewing machine, but that’s not particularly elegant. Elegant would be something like grafting the things on by picking up some stitches on the body of the bag and then grafting those with the straps, but I’d recommend sewing the ends down in that case and weaving for good measure.