Web API should be as dumb as possible and should not attempt to
lookup an origin with and without trailing slash in its URL.
That regression was introduced in rDWAPPS56fb869869644ad45e0648f4ad45c07619d468019b4 but that process should
only be performed in a Web UI context.
Related to D7980