10-02-2012 10:10 AM
I have a WebWorks application which loads a remote page using jquery's load. I need to set a cookie for the remote url. If I specify the domain then the cookie does not get set. I have tried using:
document.cookie='key=vaue; path=/; domain=my.domain.com';
It only works with
document.cookie='key=vaue; path=/';
however, the added cookie is only available for localhost.
Thanks for your help.
10-08-2012 10:36 AM
I have tried a different approach using
request.setRequestHeader("Cookie","key=value![]()
in $.ajaxSetup -> beforeSend function.
In this case I get the following error in ripple: "Refused to set unsafe header "Cookie"".
Is there a way to configure WebWorks to allow this cookies?
10-09-2012 08:45 AM
Hi there,
I'm wondering if you're running into some browser security problems here while testing?
Have you tried on a live device, or on the simulators?
10-10-2012 03:15 AM
Hi,
I'm running in ripple. I don't have access to a DevAlpha device until next week.
Thanks.
10-10-2012 09:08 AM
I would try with the simulator then. I'm leaning towards it just being a browser security issue.
10-19-2012 04:23 AM
The cookie is not set on simulator 10.0.09-386.