Title: Getting XMLHttpRequest error stopping feed from loading
Last modified: March 11, 2021

---

# Getting XMLHttpRequest error stopping feed from loading

 *  Resolved [cragbriggs](https://wordpress.org/support/users/cragbriggs/)
 * (@cragbriggs)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/getting-xmlhttprequest-error-stopping-feed-from-loading/)
 * I get “Mixed Content: The page at [https://baigalidesigns.com/](https://baigalidesigns.com/)
   was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint [http://baigalidesigns.com/wp-json/sl-insta/media/feed/](http://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 5 years, 3 months ago by [cragbriggs](https://wordpress.org/support/users/cragbriggs/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgetting-xmlhttprequest-error-stopping-feed-from-loading%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Miguel Muscat](https://wordpress.org/support/users/mekku/)
 * (@mekku)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/getting-xmlhttprequest-error-stopping-feed-from-loading/#post-14167531)
 * Hi [@cragbriggs](https://wordpress.org/support/users/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: http://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 5 years, 3 months ago by [Miguel Muscat](https://wordpress.org/support/users/mekku/).
 *  Thread Starter [cragbriggs](https://wordpress.org/support/users/cragbriggs/)
 * (@cragbriggs)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/getting-xmlhttprequest-error-stopping-feed-from-loading/#post-14168005)
 * 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.

 * ![](https://ps.w.org/spotlight-social-photo-feeds/assets/icon-256x256.png?rev
   =2817710)
 * [Spotlight Social Feeds - Block, Shortcode, and Widget](https://wordpress.org/plugins/spotlight-social-photo-feeds/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/spotlight-social-photo-feeds/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/spotlight-social-photo-feeds/)
 * [Active Topics](https://wordpress.org/support/plugin/spotlight-social-photo-feeds/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/spotlight-social-photo-feeds/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/spotlight-social-photo-feeds/reviews/)

## Tags

 * [XMLHttpRequest](https://wordpress.org/support/topic-tag/xmlhttprequest/)

 * 2 replies
 * 2 participants
 * Last reply from: [cragbriggs](https://wordpress.org/support/users/cragbriggs/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/getting-xmlhttprequest-error-stopping-feed-from-loading/#post-14168005)
 * Status: resolved