miguel-perez / smoothState.js

Unobtrusive page transitions with jQuery.
MIT License
4.43k stars 505 forks source link

SmoothState fails in https w/ current browsers: Mixed content error #310

Open cekvenich opened 7 years ago

cekvenich commented 7 years ago

Here is an example: https://murder.site44.com/post/one and try to navigate in current chrome. Error is: Mixed Content: The page at https: was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint http: This request has been blocked; the content must be served over HTTPS. (if you use http on same url, works)

I check and it SmoothState is calling https, but still jQ ajax fails. HELP. I'm a not doing anything mixed, it's all https, and it's all current domain. This project worked in development and now fails in production.

Steps to reproduce on own: Take a sample and deploy to https. (easy way to deploy is site44.com - as any subdomain is https w/ them).

Blocking.

cekvenich commented 7 years ago

Looks to be related to a trailing / in a href. It requires one. I'm trying to verify.

martijnvhummel commented 7 years ago

I had the same issue & error. Adding trailing / worked for me.

href="/path/to/file/"