Merge pull request #18 from JurajNyiri/workaround_cors_playmedia

Fix: playMedia endpoint for some Plex server versions
pull/30/head 1.3.2
Juraj Nyíri 3 years ago committed by GitHub
commit 004a6f3721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18958,7 +18958,7 @@ class PlayController {
url = plex.authorizeURL(url); url = plex.authorizeURL(url);
try { try {
const plexResponse = await axios({ const plexResponse = await axios({
method: 'post', method: 'get',
url, url,
headers: { headers: {
'X-Plex-Target-Client-Identifier': machineID, 'X-Plex-Target-Client-Identifier': machineID,

@ -168,7 +168,7 @@ class PlayController {
try { try {
const plexResponse = await axios({ const plexResponse = await axios({
method: 'post', method: 'get',
url, url,
headers: { headers: {
'X-Plex-Target-Client-Identifier': machineID, 'X-Plex-Target-Client-Identifier': machineID,

Loading…
Cancel
Save