Comments (4)
Something like this could help: http://stackoverflow.com/questions/4503135/php-get-site-url-protocol-http-vs-https
from dopresskit.
You don't even need that. Using PHP to determine whether the installation is using SSL and changing the JS/CSS links accordingly would be overcomplicating the issue.
There used to be a neat hack to allow a protocol-relative url source when importing a javascript file. So rather than:
<script src="http://cdn.somecdnsite.com/javascript/libs/javascript-library.min.js></script>
you'd do:
<script src="//cdn.somecdnsite.com/javascript/libs/javascript-library.min.js></script>
More info on protocol-relative urls can be read on this blogpost by Paul Irish.
However, if you read that post, it notes that doing protocol-relative urls are discouraged if the resource is available over HTTPS anyway.
So with this I suggest that any external javascript/css from a cdn should be changed to use the resource over HTTPS (i.e. do a search and replace of all "http://cdnjs" and replace with "https://cdnjs".
from dopresskit.
Agreed to @dafrancis comments, but specifically with declaring HTTPS in all instances. Not the protocol-relative approach.
from dopresskit.
Oh, that's much easier, I completely agree as well.
from dopresskit.
Related Issues (20)
- <histories> in game sheets outputs all child <history> entries twice. HOT 2
- Image files not deleting HOT 5
- Sort images alphabetically HOT 2
- Add more than one icon and logo
- Monetize option missing from template _data.xml
- Nothing happens on install.php with PHP7 HOT 2
- Request history # sent shows "# sent" HOT 1
- Need a flag button that simply shows count of reports -- so many scammers HOT 1
- dodistribute: non-alphanum characters stripped from keys making url-based keys unusable
- dodistribute: Don't separate keys by semicolons
- dodistribute: allow mass delete of keys
- 500 internal server error when adding 'promoter' HOT 3
- 404 not found error(Dropbox link expired) HOT 2
- Error when embedding distribute()
- Cloudflare CSS link is causing issues with HTTPS websites
- Problem with the last step: installation restarts everytime! HOT 4
- Logo not appearing in logo section
- PHP Error in Index.php HOT 3
- Incorrect link names in additionals HOT 3
- Please add Nintendo Switch platform
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dopresskit.