K
K
kot-airplane2017-09-21 12:37:05
Google Chrome
kot-airplane, 2017-09-21 12:37:05

How to make mixed http/https content work?

An error occurs when opening the page

this request has been blocked the content must be served over https

The bottom line is that the main server where the project code was transferred to https and the server where the pictures, JS, etc. not yet, and the browser does not just issue some kind of warning, but does not load CSS at all (although it displays pictures).
Is it possible to allow loading resources via http somewhere in the browser settings? waiting for the admins to transfer these servers to https may take a long time. But it is impossible to work without CSS, JS.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2017-09-21
@kot-airplane

Remove links to http statics, leave

//foo.bar/main.css
//foo.bar/static/main.png

A
Alexander, 2017-09-21
@zkelo

If these CSS and JS are some popular libraries, then use a CDN. For example, from CloudFlare . And store the styles and scripts of your project on your own server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question