Slice the onions thinly.
Melt butter in a pan and slowly sauté the onions until they turn brown.
Add flour to the sautéed onions and mix well.
Pour in the broth and bring to a boil.
Season with salt and pepper.
Transfer to an oven-safe dish, and top with baguette slices and cheese.
Bake in the oven until the cheese is melted.