1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #2152 from thornbill/me-want-cookie

Add config option to include cookies in playback requests
This commit is contained in:
dkanada 2020-12-02 11:50:45 +09:00 committed by GitHub
commit e189bc6041
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 10 deletions

View file

@ -76,6 +76,15 @@ async function getDefaultConfig() {
}
}
export function getIncludeCorsCredentials() {
return getConfig()
.then(config => config.includeCorsCredentials)
.catch(error => {
console.log('cannot get web config:', error);
return false;
});
}
export function getMultiServer() {
return getConfig().then(config => {
return config.multiserver;