• Resolved cragbriggs

    (@cragbriggs)


    I get “Mixed Content: The page at https://baigalidesigns.com/ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint https://baigalidesigns.com/wp-json/sl-insta/media/feed/. This request has been blocked; the content must be served over HTTPS.” on my homepage and the Instagram feed fails to load.

    The website is using HTTPS and I can’t see, even from scanning the database, where this HTTP request is set up or coming from.

    To make matters worse I also get the same errors trying to access the plugin Admin menu “Instagram Feeds” so my only option is to delete the plugin and look for an alternative, which I’m reluctant to do.

    I see the same errors in Chrome and

    Any ideas?

    • This topic was modified 3 years, 8 months ago by cragbriggs.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Miguel Muscat

    (@mekku)

    Hi @cragbriggs,

    I’ve inspected the error on your site and I’ve found that this issue is most likely not the plugin’s fault. Your site might not have HTTPS properly configured, or may have something installed that is interfering with HTTPS.

    Here are my findings:

    The plugin is making a request to this URL (notice that it uses HTTPS)
    https://baigalidesigns.com/wp-json/sl-insta/media/feed/

    However, your site is responding to this request with a redirect:

    Status: 301 Moved Permanently
    Location: https://baigalidesigns.com/wp-json/sl-insta/media/feed/
    

    This triggers the browser to use the “Location” URL instead, which as you can see is not an HTTPS URL. When it does so, the request fails because of “mixed content” (you cannot have HTTP content in an HTTPS page).

    By the way, I obtained this information from the “Network” tab in the browser’s console, in case you wish to confirm this yourself. The relevant request will be near the bottom of the list, called “feed” and will probably be marked in red.

    So for whatever reason, your site is intentionally redirecting REST API requests to HTTP URLs. We’d advise that you start by checking if one of your other plugins may be responsible for this redirect and if it can be turned off from that plugin’s settings. Failing that, your best bet would be to get in touch with your hosting provider to resolve the issue.

    I hope this helps!

    • This reply was modified 3 years, 8 months ago by Miguel Muscat.
    Thread Starter cragbriggs

    (@cragbriggs)

    Thanks for your quick response Miguel. It helped greatly.

    Your reply pointed me to the .htaccess file where there were some new directives. They were the issue. An unexpected result from the directives. Now to work out why and fix.

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting XMLHttpRequest error stopping feed from loading’ is closed to new replies.