Skip to content

Commit c8d5d8c

Browse files
authored
chore: update README.md
1 parent c269e43 commit c8d5d8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ Learn more about aborting fetch at https://developers.google.com/web/updates/201
8484

8585
There is no concept of Cross-Origin Resource Sharing (CORS) in native apps. React Native only accepts a boolean value for the [`credentials`](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials) option. As such, to send cookies you can either use `same-origin` and `include`.
8686

87-
The `Set-Cookie` response header returned from the server is a [forbidden header name][https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name] and therefore can't be programmatically read with `response.headers.get()`. Instead, the platform's native networking stack automatically manages cookies for you.
87+
The `Set-Cookie` response header returned from the server is a [forbidden header name](https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name) and therefore can't be programmatically read with `response.headers.get()`. Instead, the platform's native networking stack automatically manages cookies for you.
8888

8989
If you run into issues with cookie-based authentication, read the following:
90+
- https://reactnative.dev/docs/network#known-issues-with-fetch-and-cookie-based-authentication
9091
- https://build.affinity.co/persisting-sessions-with-react-native-4c46af3bfd83
9192
- https://medium.com/locastic/react-native-cookie-based-authentication-80ee18f4c71b
9293

0 commit comments

Comments
 (0)