Problem:
While a w.wiki link can often be resolved programmatically by following the redirect, it will fail in browser context because w.wiki does not set a suficient CORS policy. Running the following JavaScript from localhost will for example fail:
return fetch('https://w.wiki/37o', { method: 'HEAD', redirect: 'follow' }).then(response => { return response.url; });
Proposal
Add a getshorturl API method to the UrlShortener extension for resolving URLs.
Alternatives considered
Adding a permissive CORS policy to w.wiki(fine but more dependent of web-server configuration).