I am encountering two issues related to obtaining and using cookies with HoYoAPI:
HttpOnly Issue with Cookies:
The cookies ltoken_v2 and cookie_token_v2 need to have HttpOnly disabled manually in order to be accessible by the script. This is necessary for the script to properly obtain the cookies.
Incompatible Cookie Format:
HoYoAPI cannot process cookies named ltoken_v2 and ltuid_v2. These cookies need to be changed to ltoken and ltuid to be recognized and processed correctly by HoYoAPI.
Steps to Reproduce:
Log in to your HoYoLab or Genshin Battlepass account.
Access the cookie retrieval page using the provided script.
Check the names of the retrieved cookies.
Note that the required cookies are ltoken and ltuid, not ltoken_v2 and ltuid_v2.
Expected Solution:
Disable HttpOnly:
Additional features or further documentation may be needed to disable HttpOnly for the cookies ltoken_v2 and cookie_token_v2.
Change Cookie Names:
There is a need for modification or configuration in HoYoAPI to automatically accept and process cookies named ltoken_v2 and ltuid_v2, or to provide guidance on changing these cookie names to ltoken and ltuid.
Issue: Problems with Cookies in HoYoAPI
Description:
I am encountering two issues related to obtaining and using cookies with HoYoAPI:
HttpOnly Issue with Cookies:
ltoken_v2
andcookie_token_v2
need to have HttpOnly disabled manually in order to be accessible by the script. This is necessary for the script to properly obtain the cookies.Incompatible Cookie Format:
ltoken_v2
andltuid_v2
. These cookies need to be changed toltoken
andltuid
to be recognized and processed correctly by HoYoAPI.Steps to Reproduce:
ltoken
andltuid
, notltoken_v2
andltuid_v2
.Expected Solution:
Disable HttpOnly:
ltoken_v2
andcookie_token_v2
.Change Cookie Names:
ltoken_v2
andltuid_v2
, or to provide guidance on changing these cookie names toltoken
andltuid
.Documentation Reference:
Additional Information:
Please let me know if additional information is needed or if there are any interim solutions available.