mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add config option to include cookies in player requests
This commit is contained in:
parent
804077263c
commit
efc43b42b8
4 changed files with 32 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue