From f0ad47100748ba5f660b597787422b1b302e64c0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 21 Jan 2020 14:05:22 +0100 Subject: Update a little bit user dropdown message --- client/src/app/shared/user-subscription/remote-subscribe.component.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'client/src/app/shared/user-subscription') diff --git a/client/src/app/shared/user-subscription/remote-subscribe.component.ts b/client/src/app/shared/user-subscription/remote-subscribe.component.ts index 63e7cd5d9..befdb7157 100644 --- a/client/src/app/shared/user-subscription/remote-subscribe.component.ts +++ b/client/src/app/shared/user-subscription/remote-subscribe.component.ts @@ -39,6 +39,7 @@ export class RemoteSubscribeComponent extends FormReactive implements OnInit { const address = this.form.value['text'] const [ username, hostname ] = address.split('@') + // Should not have CORS error because https://tools.ietf.org/html/rfc7033#section-5 fetch(`https://${hostname}/.well-known/webfinger?resource=acct:${username}@${hostname}`) .then(response => response.json()) .then(data => new Promise((resolve, reject) => { -- cgit v1.2.3