: Should I use HTTP or HTTPS to reference resources on the Google CDN? All the examples of accessing google's CDN use https:// in the URL (including on Google itself) - but this has caused a
All the examples of accessing google's CDN use in the URL (including on Google itself) - but this has caused a problem when testing in Safari (certificate problem and also different domain).
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
I have switched to calling it over http instead, but just wondering if this is a mistake or security issue?
More posts by @Murphy175
2 Comments
Sorted by latest first Latest Oldest Best
You should probably just use src="//ajax.googleapis.com/..." which is a good way to allow this to work in both http and https pages.
Serving http assets in a page served via https will raise warnings in most browsers, while serving https assets in http pages usually is okay but might be "slower" because of the cryptology overhead.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.