Black Friday50% off every Pro template and membership with code50% off with Ends in 06days23hrs54min35secShop the sale →

This request has been blocked; the content must be served over HTTPS

This request has been blocked; the content must be served over HTTPS – What’s going on? When you deploy an API and try to consume it in your web app in Chrome, have you ever got the error This request…

This request has been blocked; the content must be served over HTTPS

This request has been blocked; the content must be served over HTTPS – What’s going on?

When you deploy an API and try to consume it in your web app in Chrome, have you ever got the error This request has been blocked; the content must be served over HTTPS? Chrome has a security feature that blocks insecure content (HTTP) that has been loaded through a secure page (HTTPS). If you want to know how to address this issue, try the solutions we suggest below!

This request has been blocked; the content must be served over HTTPS

How to Fix: This request has been blocked; the content must be served over HTTPS

Since your web app is hosted over HTTPS, all the external resources it consumes including API calls, CDN, CSS files, and scripts have to utilize SSL and must be secured via HTTPS. Therefore, try the following methods.

  • Changing the API calls to use HTTPS.
  • Adding the meta tag code to the <head> element in the HTML file:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

Wrap-Up

All in all, we hope that today’s blog helps you tackle this issue. If you have more solutions to deal with this error, don’t hesitate to let us know by leaving your comment below. What’s more, don’t forget to share the blog with others if you think it is useful.

In addition, if you are using WordPress or Joomla to build and develop your site, don’t hesitate to have a look at our responsive and eye-catching Free WordPress Themes and Joomla 4 Templates here. We believe that getting one of them and using it for your site will give your site a professional and good-looking appearance. Thanks for reading, and we hope you enjoyed it! See you in the next post.

Build it with a template

Start from a finished design: Joomla templates, WordPress themes or the AI-ready block themes. Every template has a free version and a live demo.

Free download

We'll send the link, setup tips and update notices, and you can reach us anytime through our AI assistant and contact form.

The download starts at once. We email you the link and ask you to confirm your address. Privacy policy.