Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookies and authorization headers dropped when making HTTP requests that redirect [iOS] - AGAIN #26311

Closed
kyhnlbyrk opened this issue Sep 3, 2019 · 7 comments
Labels
Bug Needs: Author Feedback 🌐Networking Related to a networking API. Newer Patch Available Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@kyhnlbyrk
Copy link

Environment

react-native -v: react-native-cli: 2.0.1; react-native: 0.59.8
node -v: v8.10.0
npm -v: 3.5.2

Target Platform: iOS

Steps to Reproduce
Make an HTTP fetch request to an endpoint that performs redirects.
Inspect the traffic.
Note that cookies from responses are not included in subsequent HTTP redirected requests.
Also note that authorization headers (if any) in the original request are not included in subsequent HTTP redirected requests.

Expected Behavior

Expect fetch request to carry cookie and authorization headers over to subsequent HTTP requests when being redirected.

Actual Behavior

Cookies and authorization headers from responses are not carried over into subsequent HTTP requests when being redirected.

@kyhnlbyrk kyhnlbyrk added the Bug label Sep 3, 2019
@react-native-bot react-native-bot added Platform: iOS iOS applications. 🌐Networking Related to a networking API. labels Sep 3, 2019
@react-native-bot
Copy link
Collaborator

Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?

👉 Click here if you want to take another look at the Bug Report issue template.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: Needs More Information labels Sep 3, 2019
@retyui
Copy link
Contributor

retyui commented Oct 23, 2019

I have the same problem!

@Return-1
Copy link

i can confirm this is an issue

@react-native-bot
Copy link
Collaborator

I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while.

If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.

@Return-1
Copy link

Return-1 commented Feb 6, 2020

This is still an issue

@hussainahmad
Copy link

hussainahmad commented Feb 12, 2020

with my POST service Server responds with Set-Cookie header, containing standard JSESSIONID cookie. which I am not receiving in header. In header only receiving map object and URL.

@thijs-qv
Copy link

thijs-qv commented Nov 5, 2020

Can this be reopened?

@facebook facebook locked as resolved and limited conversation to collaborators Oct 4, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Needs: Author Feedback 🌐Networking Related to a networking API. Newer Patch Available Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants