Green’s Dictionary of Slang

hair of the dog (that bit one) n.

also blood of the dog, hair, hair of the same dog
[the alcoholic ‘wolf’ that has ‘bitten’ the sufferer]

[mid-16C+] a hangover cure that consists of drinking more alcohol, usu. the same alcohol that created the hangover; occas. ext. to drugs.