Duncan
Duncan

Reputation: 10291

Call web service over HTTP on HTTPS page

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

Upvotes: 1

Views: 3478

Answers (2)

Joshua
Joshua

Reputation: 43280

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

Upvotes: 0

Darin Dimitrov
Darin Dimitrov

Reputation: 1038930

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

Upvotes: 1

Related Questions