The Local structure of anomaly inflow