Answer the question
In order to leave comments, you need to log in
Why does not log in to the ios version through cookies?
Hello. I'm trying to login to a site (phpbb forum) from an application. To do this, I send a request
let formData = new FormData();
formData.append("sid", sid);
formData.append("username", user);
formData.append("password", password);
formData.append("redirect", redirect);
formData.append("autologin", 'on');
formData.append("login", login);
console.log("SID", sid);
return fetch(`${baseUrl}/forum/phpBB3/ucp.php?mode=login`, {
method: 'POST',
body: formData,
credentials: 'same-origin'
})
fetch(`${baseUrl}/forum/phpBB3/ucp.php?i=ucp_profile&mode=reg_details&sid=${this.sid}`, {
method: 'GET',
credentials: 'same-origin'
})
Answer the question
In order to leave comments, you need to log in
I propose to go through a sniffer (the same charles) or compare the requests that go with ios and android, at the same time look at the differences in cookies. As an option, you can check requests through the react native debugger, how to connect to expo is described in this article
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question