How to support cookies

How to support cookies
0.0 0


Does anyone know how to support cookies in JSB? I want to use XMLHttpRequest in js to communicate with the server. I don’t know if XHR can handle cookies.
I googled “cocos2d-x cookies” and found some articles about CCHttpClient. Is there a corresponding class in js?
Also I wonder what’s the recommended way to do network communications in JSB.