SSL compat should imply https regardless of protocol of tracked site
-
Hi
I changed
echo ‘((“https:” == document.location.protocol) ? “https” : “http”) + “://’ . $options[‘address’] . ‘/”; ‘;
to
echo ‘”https://’ . $options[‘address’] . ‘/”; ‘;
because if the Piwik server supports SSL it should be reached over HTTPS always, otherwise the 1st trial call via HTTP would send url-params in clear over the wire even if the server switches to HTTPS.
Indeed the check would be useful on ssl_compat = false side, as the piwik HTTP call from a page over HTTPS usually raise the mixed-content blocking by the browser.So in short I think you should just drop the check and make the call straight over HTTPS if supported.
thx
- The topic ‘SSL compat should imply https regardless of protocol of tracked site’ is closed to new replies.