views:

194

answers:

2

Hello

I am having problems calling a web service using AJAX via HTTP when it's on an HTTPS page.

Is this a cross-domain/protocol problem? Do I need to do the AJAX call in the same protocol as the page?

Just wondering if it's the same problem as trying to do an HTTPS AJAX call when on an HTTP page, I suspect it is.

Any advice appreciated.

Thanks Duncan

+1  A: 

Yes, the protocol is part of the same origin policy.

Darin Dimitrov
Thanks that's what I was thinking.
Duncan
A: 

Don't do that. You run a serious risk of someone intercepting and modifying just the HTTP traffic to break your security.

Joshua