views:

26

answers:

1

Hi, I am having a site with some pages on https connection. From these Https pages , i have to use a http ajax request for some errors retrieval like blank fields. But This error messages are not coming. Is there any solution to it or i have to make that ajax request to file on https connection .

Thanks in advance

+3  A: 

This is not possible due to the Same Origin Policy.

You will need to switch the Ajax requests to https, too.

Pekka
Even the working draft of Cross-Origin Resource Sharing makes it impossible: http://www.w3.org/TR/cors/#user-agent-security
Harmen
Thanks for the answer everyone. I have changed my website according to same origin policy.
cooldude