You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Stephen Warren (JIRA)" <ji...@apache.org> on 2018/06/20 13:49:00 UTC

[jira] [Comment Edited] (CB-12074) Cookies are ignored on first application execution

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

Stephen Warren edited comment on CB-12074 at 6/20/18 1:48 PM:
--------------------------------------------------------------

thanks for the plugin.  how did you get CORS to work with cookies?  We had to set our allowed origin to *, which disallows cookies according to the CORS spec.  How do you get around having to set your allowed CORS origin to * on the server?  


was (Author: swarrenvcc):
thanks for the plugin.  next question – how did you get CORS to work with cookies?  We had to set our allowed origin to *, which disallows cookies according to the CORS spec.  How do you get around having to set your allowed CORS origin to * on the server?  

> Cookies are ignored on first application execution
> --------------------------------------------------
>
>                 Key: CB-12074
>                 URL: https://issues.apache.org/jira/browse/CB-12074
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-wkwebview-engine
>         Environment: Cordova 5.4.0, iOS 9.3.5
>            Reporter: Maxim
>            Assignee: Shazron Abdullah
>            Priority: Major
>              Labels: wkwebview-known-issues
>
> Our application authenticates to the server. The server sets a 'JSESSIONID' cookie. The cookie is used by the server for session management. 
> The issue is WKWebView does not send this cookie back to the server on subsequent requests. However, this only happens on first execution of the application, after its installation. Once the application closed and re-opened, the cookies are properly sent and authentication completes successfully. 
> The problematic behavior is consistent, and was observed on several devices. On the other hand, there are no such issues with UIWebView. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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