Heat the oven to 425°F (220°C) and line a large baking sheet with parchment. Arrange the bread slices on the sheet and toast until pale golden, 4–6 minutes per side.
Bake until the cheese is melted and the edges of the sauce are bubbling, 10–12 minutes. Switch to broil and brown the tops until deeply golden in spots, 1–2 minutes; watch closely. Let rest 2 minutes, then serve hot with cornichons.