ardabeyazoglu commented on issue #922:
URL: https://github.com/apache/cordova-ios/issues/922#issuecomment-818739159


   @jeremyspatrick @victorvhpg 
   6. Use another http request pluin, either [cordova-plugin-wkwebview-file-xhr 
***](https://github.com/oracle/cordova-plugin-wkwebview-file-xhr) or 
[cordova-plugin-advanced-http](https://github.com/silkimen/cordova-plugin-advanced-http).
   
   I have been using the first one for a year without any problem, for multiple 
domains. xmlhttprequest and fetch api both work, except that you can't get 
cookie from native layer, it must be a httpOnly cookie, -which must be- when 
used for authentication to be more secure.
   
   I don't understand why this problem is still so annoying except few specific 
use cases like websocket, as @toddtarsi mentioned. Even websocket issue can be 
solved by a few changes in the app, giving cookie back in body instead of 
header after authentication, and send it manually in websocket handshake.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to