This commit ensures that if an Origin is returned as it was provided, possibly with a trailing slash. See gh-26892