informagico / FusionSolar-API-RE

Huawei FusionSolar API based on Reverse Engineering
Apache License 2.0
0 stars 0 forks source link

Regarding GET db-session cookie from the SSO request #1

Closed Luke265 closed 1 month ago

Luke265 commented 1 month ago

To get db-session cookie, just disable redirects in this request call https://github.com/informagico/FusionSolar-API-RE/blob/3383fee7e9ad6bb0e4f2a822f2f7e1ef15c5682e/src/app.js#L103-L103 , not sure how to do in axios, probably setting maxRedirects to zero might work

informagico commented 1 month ago

Uh, that's cool thank you! Will take a look in the next days 🤘

informagico commented 1 month ago

@Luke265 it is indeed working! Thanks for the suggestion 👍 Hope to find time to implement the rest in the near future, but feel free to fork and contribute ❤️