An open source plugin for BlackBerry Dynamics SDK with React Native support. BlackBerry Dynamics: https://developers.blackberry.com/us/en/products/blackberry-dynamics.html React Native: http://reactnative.dev
13
stars
18
forks
source link
Add cookies header that is added to regular requests. #4
Hi!
Default RN fetch api attaches cookies to requests, but they are not attached by BB fetch implementation. This MR fixes this by adding Cookies header that is added to normal fetch requests as well, making the API more compliant with the original function.
Changes that were introduced:
Retrieve current cookies for domain from ForwardingCookieHandler
Add the cookies as Cookies header to the request if withCredentials is set to true.
Also, some whitespaces were removed in the process
Hi! Default RN fetch api attaches cookies to requests, but they are not attached by BB fetch implementation. This MR fixes this by adding Cookies header that is added to normal fetch requests as well, making the API more compliant with the original function.
Changes that were introduced:
ForwardingCookieHandler
Cookies
header to the request ifwithCredentials
is set to true.