use same protocol as this page to ajax call