A
A
Alexander Bagirov2014-12-24 07:57:11
Images
Alexander Bagirov, 2014-12-24 07:57:11

How to secure a page with https?

Hello!

I have a QAS (Questions & Answers) project. It works over HTTPS. When creating a question, you can upload a photo to its text by uploading it from a computer or by providing a link on the Internet. When the photo is uploaded, everything is fine, but when you specify a link, the picture is always taken from the specified site, which is not the fact that it works with HTTPS. Because of this, on pages with such questions, an error appears stating that some information on the page is not protected, since it is not loaded via HTTPS. Can this be bypassed somehow? Are there any services for uploading images to a site via HTTPS?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2014-12-24
@alexbagirov

Send pictures through your proxy.

I
Ilya Evseev, 2014-12-24
@IlyaEvseev

Give links like your_site.ru/img/key
In nginx, determine the actual url of the image by the key (for example, read from redis), download it, cache it, give it to the client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question