Https redirect via http following https breaks xhr

On https page the call to page with folder redirect leads to forward to http page first and than to https.
While in browser it works, in JS code which uses XHR it produces “was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint” error.
The forwarding sequence is
https://cdn.xml4jquery.com/ajax/libs/embed-page-debbie/dist/Components/SimplePage
http://cdn.xml4jquery.com/ajax/libs/embed-page-debbie/dist/Components/SimplePage/
https://cdn.xml4jquery.com/ajax/libs/embed-page-debbie/dist/Components/SimplePage/

Fortunately for me placing the slash ‘/’ in the end of url solved the issue. But if I would not own the code, the problem will break the page.

You’d need to contact the site owner in this case.

This topic was automatically closed after 14 days. New replies are no longer allowed.