[ 
https://issues.apache.org/jira/browse/CB-12399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15982313#comment-15982313
 ] 

ASF GitHub Bot commented on CB-12399:
-------------------------------------

Github user Lemon-King commented on the issue:

    https://github.com/apache/cordova-plugin-file-transfer/pull/174
  
    Can do.
    
    This PR resolves an issue we came across on our framework with File 
Transfer and were unsure if others were dealing with the same problem.
    
    The issue was with CloudFlare and services like it will send a few cookies 
downstream such as __cfduid and __uvt. 
    Instead of reading the other cookies send by the session File Transfer 
would pull __cfduid only and set that as the cookie header during the File 
Transfer request. Just the single cookie, no others.
    We resolved this by appending any cookies that we stored locally within 
CookieManager to the cookies gathered by the method gcMethod.
    
    We felt if the developer chooses to utilize CookieManager over WebView for 
cookie handling, locally, within the app. That this PR will allow cookies 
within CookieManager to be used correctly.


> FileTransfer only uses WebView cookies if available
> ---------------------------------------------------
>
>                 Key: CB-12399
>                 URL: https://issues.apache.org/jira/browse/CB-12399
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>    Affects Versions: Master
>         Environment: Android
>            Reporter: James Harless
>            Priority: Minor
>
> Came across this bug a few weeks ago where FileTransfer will use WebView 
> cookies over CookieManager cookies. This can be a major source of confusion 
> if WebView receives a cookie with a hybrid app where cookies are handled by 
> CookieManager.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to