Send credentials when fetching remote profile.
This commit is contained in:
parent
fb8b625d9a
commit
784eb8426c
2 changed files with 3 additions and 2 deletions
|
@ -160,9 +160,10 @@ const authHeaders = (user) => {
|
|||
}
|
||||
}
|
||||
|
||||
const externalProfile = (profileUrl) => {
|
||||
const externalProfile = ({profileUrl, credentials}) => {
|
||||
let url = `${EXTERNAL_PROFILE_URL}?profileurl=${profileUrl}`
|
||||
return fetch(url, {
|
||||
headers: authHeaders(credentials),
|
||||
method: 'GET'
|
||||
}).then((data) => data.json())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue