klox7 VIP
Total posts: 914
04 Май 2015 08:35

Hello,

I'm using SLL on my site and if you use let's say this (from records template defualt_list_map.php)

JFactory::getDocument()->addScript(' http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.15/src/markerclusterer_packed.js ');

then clusters won't work in https. So please remove hardcoded http: from all your external links so your component will work on http and https.

You can also update script path to latest 2.1.2.

Regards

Последние изменения: 28 Май 2015


klox7 VIP
Total posts: 914
04 Май 2015 14:48

Also problem with filter module if I have it on https page

Mixed Content: The page at ' https://www.domain.com/contact ' was loaded over HTTPS, but requested an insecure script ' http://www.domain.com/component/cobalt/?task=ajax.mainJS& ;Itemid=1'. This request has been blocked; the content must be served over HTTPS.


Sergey
Total posts: 13,748
06 Май 2015 09:27

First is fixed but second is called like this

$document->addScript(JRoute::_('index.php?option=com_cobalt&task=ajax.mainJS&Itemid=1'));

so it should produce correct HTTP.


klox7 VIP
Total posts: 914
06 Май 2015 09:44

I think JRoute needs another argument $ssl - 0,1 or 2

Click here to link...

But there are also other mixed content warnings. For ex. favicon in url field and this

http://chart.apis.google.com/chart?cht=qr& ;chs=120x120&chl=geo:46.255922,15.121756600000026'.

So I think they should be changed for whole Cobalt.


Sergey
Total posts: 13,748
07 Май 2015 02:47

Unfortunately if you change this

 http://chart.apis.google.com/chart?cht=qr& ;chs=120x120&chl=geo:46.255922,15.121756600000026

to this

 https://chart.apis.google.com/chart?cht=qr& ;chs=120x120&chl=geo:46.255922,15.121756600000026

It does not work. No HTTPS support.

klox7 I think JRoute needs another argument $ssl - 0,1 or 2

Yes, if you create full URL and in my case it creates relative URL. If I do this

var_dump(JRoute::_('index.php?option=com_cobalt&task=ajax.mainJS&Itemid=1'));

then I get this

2015-05-07_08-37-43

it means that it shoud inherit what ever protocol is currently used.


klox7 VIP
Total posts: 914
07 Май 2015 08:39

Sergey https://chart.apis.google.com/chart?cht=qr&chs=120x120&chl=geo:46.255922,15.121756600000026

Is this for creating QR codees? Was this deprecated from Google?


Sergey
Total posts: 13,748
12 Май 2015 10:44

klox7

Sergey https://chart.apis.google.com/chart?cht=qr&chs=120x120&chl=geo:46.255922,15.121756600000026

Is this for creating QR codees? Was this deprecated from Google?

I think so. But it still works. I'll wait till they completely stor serving.


klox7 VIP
Total posts: 914
12 Май 2015 14:40

That's why https isn't supported.


klox7 VIP
Total posts: 914
27 Май 2015 08:16

There still seems to be a problem with cluster images (tested in records module with map template) not serving over https if you have it enabled.


pepperstreet VIP
Total posts: 3,837
27 Май 2015 13:18

Interesting topic... I am not firm in HTTPS etc. but can't you set or force any exceptions? I mean, allow certain URLs to be regular URls?


klox7 VIP
Total posts: 914
28 Май 2015 07:55

You can do it many ways to set exceptions. One way is .htaccess but with many rules it can get messy, then you have great extension SSL Redirect from Yireo and at last you have the Joomla way which is not the best. With Joomla core https solution you have in Global parameters option to use it on entire site or backend. Then you have also option in every menu item to serve it as https. But the problem is once you go to menu item with https it stays on https if you browse further. And this is not good if you want to have only a couple of pages on https.

I decided to use the whole site on https. Why not? Users are more protected that way. It just consumes server resources a little bit more.

Also I found this on Google Blog Click here to link...


pepperstreet VIP
Total posts: 3,837
28 Май 2015 14:11

Thanks klox7! I knew about the Joomla core features and Yireo... but lacked some confirmation and real use case experience.

klox7 But the problem is once you go to menu item with https it stays on https if you browse further.

That was my primary thought and issue. What happens to "inner" links, that might not use httpS, or 3rd-party stuff I have no influence. How to make working exeptions for those...

I remember many sites I have visited, where I had the "mixed content" error messages. Really bad user experience. First I have thought it is my browser or some add-on. Thanks for your confirmation and mentioning the message in your previous comments.

Replay Topic
Uploading
Click here to upload and insert file from you hard drive: (png, gif, jpg, jpeg, zip, txt, rar)
Работает на Cobalt