Bug fixing for calls from HTTPS pages