Skip to content

Commit 1877c5d

Browse files
committed
add origin:app header for Cupra/Seat API requests
The MyCupra 2.16.0 APK sets origin:app via Retrofit @Header annotation on charging/climate status+settings endpoints (e.g. ChargeApi, ClimateControlApi). Without it, recent Cupra/Seat backend changes return errors on getVehicles/garage. Setting it globally on all three header blocks (getVehicles, getSeatCupraStatus, setSeatCupraStatus) matches pycupra and the actual app behavior.
1 parent 4bac171 commit 1877c5d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,7 @@ class VwWeconnect extends utils.Adapter {
19791979
"app-market": "android",
19801980
"app-version": "2.16.0",
19811981
"User-ID": this.seatcupraUser,
1982+
origin: "app",
19821983
};
19831984
}
19841985

@@ -3767,6 +3768,7 @@ class VwWeconnect extends utils.Adapter {
37673768
"app-version": "2.16.0",
37683769
"User-ID": this.seatcupraUser,
37693770
VIN: vin,
3771+
origin: "app",
37703772
};
37713773

37723774
for (const endpoint of endpoints) {
@@ -3894,6 +3896,7 @@ class VwWeconnect extends utils.Adapter {
38943896
"app-market": "android",
38953897
"app-version": "2.16.0",
38963898
VIN: vin,
3899+
origin: "app",
38973900
},
38983901
data: body,
38993902
})

0 commit comments

Comments
 (0)