differential cohomology
There are at least two things that are called quantum anomalies in the context of quantum field theory
anomalous action functional: the action functional (in path integral quantization) is not a globally well defined function, but instead a section of a line bundle on configuration space?;
anomalous symmetry: a symmetry of the action functional does not extend to a symmetry of the exponentiated action times the path integral measure; or equivalently the action of a group on classical phase space? is not preserved by deformation quantization?.
…
…
The sigma-model for a supersymmetric fundamental brane on a target space has an anomaly coming from the nontriviality of Pfaffian line bundles associated with the fermioninc fields on the worldvolume. These anomalies disappear (i.e. these bundles are trivializable) when the structure group of the tangent bundle of has a sufficiently high lift through the Whitehead tower of .
Spin structure the worldline anomaly for the spinning particle/superparticle vanishes when has Spin structure
This is a classical result. A concrete derivation is in
Witten, Anomalies etc. (somewhere)
String structure the worldsheet anomaly for the spinning string/superstring in heterotic string theory? vanishes (essentially) when has String structure
This is originally due to Killingback and Witten. A commented list of literture is here. Recently Ulrich Bunke gave the rigorous proof
Fivebrane structure the worldvolume anomaly for the super-5-brane in dual heterotic string theory? vanishes (essentially) when has Fivebrane structure. See there.
A reference that very clearly identifies the mathematical nature of quantum anomalies for higher gauge theories is