Only the Brave

Overview
Cooper is a Union Army officer who after being jilted by girlfriend, Virginia Bruce, volunteers on what could be a suicide mission. He volunteers to go behind enemy lines disguised in Confederate gray as a staff officer to Robert E. Lee. He's to ride to a certain plantation which is a local brigade headquarters and deliberately let himself be caught with maps showing false Union troop positions. Of course, the penalty, then as now, is execution.
Similar
Wicked Spring (2002)
The Beguiled (1971)
Band of Angels (1957)
The Colt (2005)
Gettysburg (1993)
Gods and Generals (2003)
The General (1926)
Andersonville (1996)
Ride with the Devil (1999)
C.S.A.: The Confederate States of America (2005)
The Birth of a Nation (1915)
Gone with the Wind (1939)
Glory (1989)
Friendly Persuasion (1956)
Grey Knight (1993)
Love Me Tender (1956)
Free State of Jones (2016)
The Love Letter (1998)
The Dead Don't Hurt (2024)
The Damned (2024)