Location property on the RequestUrlResponsePromise object

For reasons, I’m trying to make a request to a URL with Obsidian and I want to know where that request redirects to. I can’t do it with usual fetch because of CORS. requestURL works, but it simply follows the redirect, but doesn’t expose the redirected location. It’d be lovely to include the location as a property on the response, like the Response object does in the web platform.