Read / write header in ios simulator

Hi guys, my app after login writes the authorization token in local storage. After login this token is read from backend application, and It works fine both from a browser and a physical device, but when I launch the command emulate the app is loaded the login is successful but the token is not retrived (or written) in header http. If possible i can enclose screenshots. Thanks.