Yes, cooked onions are dangerous for dogs. Onions contain N-propyl disulfide, which can destroy red blood cells and cause Heinz body anemia. This leads to weakness, lethargy, vomiting, diarrhea, and potentially death. Even small amounts can be toxic, and cooking does not eliminate the danger. If your dog eats onions or anything containing them, seek veterinary care immediately.