CAUSEWAY-3976: [v2] backport: allow client URL rewrite only if origin is considered the same based on what the server-side thinks