Preheat your oven to 300°F (150°C).
Remove the membrane from the back of the ribs. Pat the ribs dry with paper towels.
Mix the dry rub: In a small bowl, combine salt, pepper, paprika, garlic powder, onion powder, and cayenne.
Season the ribs generously on both sides. Place them on a foil-lined baking tray.
Cover tightly with foil and bake in the oven for 2.5 to 3 hours until the ribs are tender.
Prepare the BBQ glaze: Mix barbecue sauce, brown sugar, and apple cider vinegar in a saucepan over low heat. Simmer for 5–7 minutes.
Remove ribs from the oven and discard the foil. Baste both sides with the glaze.
Finish on the grill or broiler for 5–10 minutes, basting again halfway through, to get that caramelized finish.
Rest for 10 minutes, slice, and serve hot with extra sauce on the side.