ADSB/AIS image proxy

This commit is contained in:
2026-07-03 18:54:40 -04:00
parent fec6ee8a48
commit 3e44dbb8eb

View File

@@ -89,6 +89,6 @@ export async function getAIS() {
} }
export function getAISImage(mmsi) { export function getAISImage(mmsi) {
return fetch(`https://www.marinetraffic.com/getAssetDefaultPhoto/?photo_size=800&asset_type_id=0&asset_id=${mmsi}`) return fetch(`https://www.marinetraffic.com/getAssetDefaultPhoto/?photo_size=800&asset_type_id=0&asset_id=${mmsi}`,
.then(resp => resp.blob()); {headers: {'User-Agent': 'Mozilla/5.0', 'Referer': 'https://www.marinetraffic.com/'}}).then(resp => resp.blob());
} }