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!

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.



