Mautic Community Forums

Serve asset over https

Hi, anybody know how to download an asset and serve it on https? because my site didnt let any http to access to my site.
i use asset and when the form submitted i want to download the asset. but the asset downloaded via http, and i dont know how can i change it.

I’ve been looking around with no result, if there is any forum/page/tutorial i can learn from, please share :smile: Thank you

NB: the error on console was
Mixed Content: The page at ‘https://www.mysite.com/id/test-ebook’ was loaded over HTTPS, but requested an insecure resource ‘http://mautic.for.mysite/asset/3:tax-outlook-2018pdf?ct=YToyOntpOjA7czo0OiJmb3JtIjtpOjE7aTo3O30%3D’. This request has been blocked; the content must be served over HTTPS.

You will have to switch your Mautic instance from HTTP to HTTPS.

Hi PeterTL,

Thanks for the answer, but i am not quite understand with how to switch Mautic instance.

On my Mauticsite > Settings > Configuration > General Settings > Site’s URL, its already on https.
my form action for that spesific form already to https.
the script code on “Manual Copy” i already change the script.src: and var mautic domain into https

Switching to HTTPS/SSL means abtaining an SSL certificate from a SSL quthority, installing it on the webserver and configuring the hosts accordingly. Only changing the site’s URL does not do the trick.