The correct option is D Liver, pancreas and salivary glands
Digestive glands which are not part of the digestive tract but have a role in digestion are called accessory digestive glands. Salivary glands, liver and pancreas are the various accessory digestive glands which are associated with the alimentary canal but are not within the alimentary canal. These glands release their secretions into the alimentary canal through ducts.
Gastric glands are present in the inner lining of the stomach while the Brunner's glands are found in the submucosa layer of the duodenum. Since these two glands are within the digestive tract they do not fall under the category of accessory digestive glands.