Alexa had this problem with her two cats. She bought some bitter apple spray and sprayed it on the cords. That seemed to solve the problem.

This is the prouduct that she used.