Hi Scott, unfortunately (or fortunately depending on your POV), same domain policy applies to the whole domain, including protocol. http://www.mysite.com making a request to https://www.mysite.com is not valid
cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer would test gold. If you find they make sense, conform to your experience, and don't harm yourself or others, only then should you accept them.' From: Scott <sc...@appletree.com> To: "jQuery (English)" <jquery-en@googlegroups.com> Date: 07/09/2009 03:56 PM Subject: [jQuery] $.get ajax call on http page to https on same domain I'm successfully able to make jQuery $.get ajax calls, everything works great. But some ajax calls pass credentials, so I need those calls to be secure. I simply try $.get("https://localhost/ajax.xml", etc...); instead of http. But now it's not working, instead of an http get call, I see in firebug an http OPTIONS request is sent to the server and without the cookies. So my tomcat server returns a redirect to my login page (as it doesn't see a session id in the cookie or url) and the ajax call fails.. What's going on? Why doesn't it simply issue the exact same get request jQuery does when the destination url is http? How can I make this work?
<<inline: graycol.gif>>
<<inline: ecblank.gif>>