diff options
Diffstat (limited to 'client/src/app/shared/user-subscription')
-rw-r--r-- | client/src/app/shared/user-subscription/remote-subscribe.component.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
39 | const address = this.form.value['text'] | 39 | const address = this.form.value['text'] |
40 | const [ username, hostname ] = address.split('@') | 40 | const [ username, hostname ] = address.split('@') |
41 | 41 | ||
42 | // Should not have CORS error because https://tools.ietf.org/html/rfc7033#section-5 | ||
42 | fetch(`https://${hostname}/.well-known/webfinger?resource=acct:${username}@${hostname}`) | 43 | fetch(`https://${hostname}/.well-known/webfinger?resource=acct:${username}@${hostname}`) |
43 | .then(response => response.json()) | 44 | .then(response => response.json()) |
44 | .then(data => new Promise((resolve, reject) => { | 45 | .then(data => new Promise((resolve, reject) => { |