We study correlation functions of spectrally-flowed vertex operators in bosonic string theory on \text{AdS}_3\times X in the path integral formalism. By restricting the path integral to only include worldsheets which live near the asymptotic boundary, we compute correlation functions of spectrally-flowed vertex operators and find a precise agreement with the perturbative correlators in the recently-proposed dual CFT at all orders in conformal perturbation theory. We thus provide highly nontrivial evidence for the bulk/boundary duality.