Boundary layer flashback prevention by active control