Hlanganisa imibhalo enamandla kanye nangaphandle kwe-HTTPS

Uma ufaka imibhalo engabhalwanga endaweni <head> bese ubiza ikhasi elinesitifiketi esivele sikhona se-SSL, le mibhalo iyavinjwa ngakho-ke ayenziwanga. Uma umane ushiye umthetho olandelwayo, yonke imibhalo ibizwa ngokuzenzakalela kwifomu ebethelwe uma iwebhusayithi itholakala nge-https: // - kungenjalo kungabhalwanga.


Ukuze lokhu kusetshenziswe esikhundleni salokho

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

kulula

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

Okuwukuphela kogibe ukuqiniseka ukuthi iskripthi singafinyeleleka nge-https nangaphandle kwe-https. Okungenzeka ukuthi lokhu akusilo iqhinga, kepha isimilo sichazwa ngokusemthethweni ku- RFC 3986: "Isikhombi Sezisetshenziswa Ezingafaniyo (i-URI): IGeneric Syntax" , esigabeni "4.2. Isethenjwa Esihlobene ":

A relative reference that begins with two slash characters is termed a network-path reference; such references are rarely used.

Emuva