If the white discharge is caused by a fungal infection, antifungal drugs are often prescribed. These drugs can help to eliminate the fungus and reduce inflammation in the body. However, they can also have side effects such as headaches, stomach pain, and liver damage.