mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
fixed cors problem when fetching posters
This commit is contained in:
@@ -24,7 +24,7 @@ export const checkImageURL = async url => {
|
|||||||
if (!url || !url.match(/.(jpg|jpeg|png|gif)$/i)) return false
|
if (!url || !url.match(/.(jpg|jpeg|png|gif)$/i)) return false
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await fetch(url)
|
await fetch(url, { mode: 'no-cors' })
|
||||||
return true
|
return true
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user