This request is blocked; content must be served over https

I am trying to do ajax, my code is written on an https site which it is requesting not https, but the resources were blocked by Chrome.

$.ajax({ url : "http://example.com/non-https", .. .. 

Earlier in the earlier version I did not have this problem. Should my ajax request program https too? Or is there a better way to keep this problem?

+6
source share

Source: https://habr.com/ru/post/981506/


All Articles