I’m trying to detect if the current page is being delivered via SSL in order to decide whether or not to include certain unsecure external resources. My current method involves checking if request.url starts with ‘https’. Is this the simplest way of accomplishing this? Is there a better way? Thanks!
I’m trying to detect if the current page is being delivered via SSL in
Share
In a controller or view: