Let label directions tangent to the D-brane and label transverse directions. The endpoints obey Dirichlet conditions transversely,
and the boundary variation of the metric and constant B-field terms gives mixed tangential conditions
up to the orientation sign at the two ends. A worldvolume gauge potential contributes in the same place, so the gauge-invariant condition contains .
From the brane perspective, the pullback of the background B-field is therefore indistinguishable locally from a constant worldvolume electromagnetic field strength, modulo its two-form gauge symmetry and a compensating transformation of the brane gauge field. This is the open-string boundary condition in a B-field; sufficiently general constant also induces the familiar noncommutative deformation of D-brane endpoint coordinates.