Set cookie secure flag
Set cookie secure flag

closes #1680
- added secure flag for cookies if SSL is forced

ITJesse/Ghost-zh,prosenjit-itobuz/Ghost,AnthonyCorrado/Ghost,weareleka/blog,Feitianyuan/Ghost,ashishapy/ghostpy,velimir0xff/Ghost,pensierinmusica/Ghost,gabfssilva/Ghost,load11/ghost,skleung/blog,akveo/akveo-blog,TryGhost/Ghost,katiefenn/Ghost,beautyOfProgram/Ghost,laispace/laiblog,cwonrails/Ghost,sceltoas/Ghost,camilodelvasto/localghost,uploadcare/uploadcare-ghost-demo,woodyrew/Ghost,devleague/uber-hackathon,barbastan/Ghost,ManRueda/manrueda-blog,Bunk/Ghost,ladislas/ghost,pbevin/Ghost,flomotlik/Ghost,JonathanZWhite/Ghost,axross/ghost,influitive/crafters,schematical/Ghost,mattvh/Ghost,dggr/Ghost-sr,SkynetInc/steam,jin/Ghost,optikalefx/Ghost,IbrahimAmin/Ghost,lowkeyfred/Ghost,GroupxDev/javaPress,darvelo/Ghost,ErisDS/Ghost,Coding-House/Ghost,KnowLoading/Ghost,ManRueda/manrueda-blog,yundt/seisenpenji,rtorino/me-etc,nneko/Ghost,syaiful6/Ghost,delgermurun/Ghost,greenboxindonesia/Ghost,darvelo/Ghost,pathayes/FoodBlog,cncodog/Ghost-zh-codog,schneidmaster/theventriloquist.us,olsio/Ghost,singular78/Ghost,freele/ghost,mtvillwock/Ghost,situkangsayur/Ghost,javimolla/Ghost,NamedGod/Ghost,telco2011/Ghost,rchrd2/Ghost,Netazoic/bad-gateway,PaulBGD/Ghost-Plus,tadityar/Ghost,memezilla/Ghost,obsoleted/Ghost,v3rt1go/Ghost,aexmachina/blog-old,aroneiermann/GhostJade,vainglori0us/urban-fortnight,lethalbrains/Ghost,oimou-house/blog,Kaenn/Ghost,etanxing/Ghost,hoxoa/Ghost,sifatsultan/js-ghost,ivantedja/ghost,Bunk/Ghost,javimolla/Ghost,edsadr/Ghost,manishchhabra/Ghost,tanbo800/Ghost,letsjustfixit/Ghost,Jonekee/Ghost,tmp-reg/Ghost,JonathanZWhite/Ghost,TryGhost/Ghost,hawkrives/Wraith,load11/ghost,klinker-apps/ghost,acburdine/Ghost,Aaron1992/Ghost,jeonghwan-kim/Ghost,tksander/Ghost,jparyani/GhostSS,imjerrybao/Ghost,letsjustfixit/Ghost,etanxing/Ghost,syaiful6/Ghost,phillipalexander/Ghost,rafaelstz/Ghost,duyetdev/islab,SkynetInc/steam,bosung90/Ghost,mikecastro26/ghost-custom,consoleblog/consoleblog,francisco-filho/Ghost,Japh/Ghost,mnitchie/Ghost,hnq90/Ghost,kortemy/Ghost,djensen47/Ghost,NodeJSBarenko/Ghost,edurangel/Ghost,dbalders/Ghost,blankmaker/Ghost,chevex/undoctrinate,jamesslock/Ghost,edsadr/Ghost,janvt/Ghost,lf2941270/Ghost,UsmanJ/Ghost,anijap/PhotoGhost,adam-paterson/blog,dgem/Ghost,Gargol/Ghost,uniqname/everydaydelicious,edurangel/Ghost,yundt/seisenpenji,disordinary/Ghost,mhhf/ghost-latex,e10/Ghost,ballPointPenguin/Ghost,stridespace/Ghost,v3rt1go/Ghost,Smile42RU/Ghost,dqj/Ghost,sangcu/Ghost,panezhang/Ghost,JohnONolan/Ghost,ClarkGH/Ghost,stridespace/Ghost,dbalders/Ghost,trunk-studio/Ghost,PaulBGD/Ghost-Plus,VillainyStudios/Ghost,BlueHatbRit/Ghost,skmezanul/Ghost,Trendy/Ghost,developer-prosenjit/Ghost,sangcu/Ghost,sceltoas/Ghost,jomofrodo/ccb-ghost,cgiffard/Ghost,omaracrystal/Ghost,PeterCxy/Ghost,ASwitlyk/Ghost,IbrahimAmin/Ghost,bitjson/Ghost,carlyledavis/Ghost,icowan/Ghost,Klaudit/Ghost,dgem/Ghost,lukw00/Ghost,tandrewnichols/ghost,kolorahl/Ghost,Remchi/Ghost,dai-shi/Ghost,uploadcare/uploadcare-ghost-demo,ignasbernotas/nullifer,vloom/blog,andrewconnell/Ghost,InnoD-WebTier/hardboiled_ghost,cobbspur/Ghost,Polyrhythm/dolce,johngeorgewright/blog.j-g-w.info,scopevale/wethepeopleweb.org,hoxoa/Ghost,adam-paterson/blog,panezhang/Ghost,ashishapy/ghostpy,mttschltz/ghostblog,jiachenning/Ghost,rito/Ghost,sergeylukin/Ghost,tidyui/Ghost,mdbw/ghost,makapen/Ghost,schneidmaster/theventriloquist.us,cncodog/Ghost-zh-codog,davidblurton/salmondesign-old,stridespace/Ghost,diancloud/Ghost,Sebastian1011/Ghost,zhiyishou/Ghost,nmukh/Ghost,praveenscience/Ghost,wspandihai/Ghost,claudiordgz/Ghost,InnoD-WebTier/hardboiled_ghost,wangjun/Ghost,telco2011/Ghost,ygbhf/Ghost,smedrano/Ghost,hawkrives/Wraith,mohanambati/Ghost,LeandroNascimento/Ghost,ManRueda/manrueda-blog,Kaenn/Ghost,Dnlyc/Ghost,wallmarkets/Ghost,Rovak/Ghost,chris-yoon90/Ghost,kortemy/Ghost,Kikobeats/Ghost,tchapi/igneet-blog,davidmenger/nodejsfan,novaugust/Ghost,bisoe/Ghost,virtuallyearthed/Ghost,daimaqiao/Ghost-Bridge,zackslash/Ghost,lcamacho/Ghost,MadeOnMars/Ghost,jacostag/Ghost,veyo-care/Ghost,ryanbrunner/crafters,kevinansfield/Ghost,kaiqigong/Ghost,acburdine/Ghost,ryanbrunner/crafters,bbmepic/Ghost,vlmhco/personal-blog,alecho/Ghost,mlabieniec/ghost-env,SachaG/bjjbot-blog,Xibao-Lv/Ghost,metadevfoundation/Ghost,ericbenson/GhostAzureSetup,kaiqigong/Ghost,leonli/ghost,rmoorman/Ghost,sfpgmr/Ghost,floofydoug/Ghost,RoopaS/demo-intern,yangli1990/Ghost,petersucks/blog,kwangkim/Ghost,vainglori0us/urban-fortnight,llv22/Ghost,johnnymitch/Ghost,r1N0Xmk2/Ghost,pollbox/ghostblog,jorgegilmoreira/ghost,makapen/Ghost,ghostchina/Ghost-zh,Jai-Chaudhary/Ghost,davidenq/Ghost-Blog,llv22/Ghost,mayconxhh/Ghost,greyhwndz/Ghost,r14r/fork_nodejs_ghost,MadeOnMars/Ghost,zeropaper/Ghost,dylanchernick/ghostblog,cwonrails/Ghost,tksander/Ghost,rameshponnada/Ghost,pensierinmusica/Ghost,neynah/GhostSS,camilodelvasto/localghost,kmeurer/GhostAzureSetup,ddeveloperr/Ghost,jamesyothers/Ghost,rollokb/Ghost,Japh/shortcoffee,jaguerra/Ghost,lukaszklis/Ghost,jomahoney/Ghost,rizkyario/Ghost,petersucks/blog,Azzurrio/Ghost,javorszky/Ghost,kevinansfield/Ghost,mhhf/ghost-latex,Alxandr/Blog,camilodelvasto/herokughost,cncodog/Ghost-zh-codog,Xibao-Lv/Ghost,AlexKVal/Ghost,notno/Ghost,alanmoo/moo-on-the-web,Smile42RU/Ghost,LeandroNascimento/Ghost,riyadhalnur/Ghost,etdev/blog,barbastan/Ghost,icowan/Ghost,ITJesse/Ghost-zh,choskim/ghost_exp,codeincarnate/Ghost,carlosmtx/Ghost,pollbox/ghostblog,zackslash/Ghost,veyo-care/Ghost,telco2011/Ghost,k2byew/Ghost,GarrethDottin/Habits-Design,karmakaze/Ghost,YY030913/Ghost,anijap/PhotoGhost,madole/diverse-learners,jomofrodo/ccb-ghost,JonSmith/Ghost,axross/ghost,davidenq/Ghost-Blog,choskim/Ghost,laispace/laiblog,NikolaiIvanov/Ghost,sankumsek/Ghost-ashram,sebgie/Ghost,duyetdev/islab,DesenTao/Ghost,zumobi/Ghost,julianromera/Ghost,melissaroman/ghost-blog,KnowLoading/Ghost,ddeveloperr/Ghost,dymx101/Ghost,GroupxDev/javaPress,shrimpy/Ghost,Romdeau/Ghost,zumobi/Ghost,JohnONolan/Ghost,PeterCxy/Ghost,Kikobeats/Ghost,disordinary/Ghost,daimaqiao/Ghost-Bridge,olsio/Ghost,daihuaye/Ghost,thehogfather/Ghost,denzelwamburu/denzel.xyz,Netazoic/bad-gateway,JohnONolan/Ghost,klinker-apps/ghost,mohanambati/Ghost,Kaenn/Ghost,fredeerock/atlabghost,denzelwamburu/denzel.xyz,madole/diverse-learners,Alxandr/Blog,praveenscience/Ghost,exsodus3249/Ghost,AnthonyCorrado/Ghost,alexandrachifor/Ghost,influitive/crafters,singular78/Ghost,Klaudit/Ghost,SachaG/bjjbot-blog,skleung/blog,NovaDevelopGroup/Academy,Feitianyuan/Ghost,cysys/ghost-openshift,jomofrodo/ccb-ghost,allanjsx/Ghost,no1lov3sme/Ghost,tuan/Ghost,notno/Ghost,BlueHatbRit/Ghost,djensen47/Ghost,benstoltz/Ghost,ckousik/Ghost,hnarayanan/narayanan.co,wallmarkets/Ghost,mattvh/Ghost,yanntech/Ghost,ladislas/ghost,sajmoon/Ghost,prosenjit-itobuz/Ghost,Elektro1776/javaPress,gcamana/Ghost,choskim/GhostAzure,liftup/ghost,phillipalexander/Ghost,k2byew/Ghost,Remchi/Ghost,atandon/Ghost,dai-shi/Ghost,ericbenson/GhostAzureSetup,leonli/ghost,kaychaks/kaushikc.org,Japh/shortcoffee,augbog/Ghost,beautyOfProgram/Ghost,carlyledavis/Ghost,diogogmt/Ghost,novaugust/Ghost,devleague/uber-hackathon,JonSmith/Ghost,schematical/Ghost,ngosinafrica/SiteForNGOs,wemakeweb/Ghost,allspiritseve/mindlikewater,NikolaiIvanov/Ghost,sunh3/Ghost,achimos/ghost_as,johnnymitch/Ghost,ManRueda/Ghost,javorszky/Ghost,jeonghwan-kim/Ghost,ghostchina/Ghost-zh,jparyani/GhostSS,tadityar/Ghost,mattchupp/blog,patterncoder/patterncoder,morficus/Ghost,jamesslock/Ghost,optikalefx/Ghost,netputer/Ghost,bigertech/Ghost,blankmaker/Ghost,kmeurer/Ghost,jgladch/taskworksource,ManRueda/Ghost,Loyalsoldier/Ghost,halfdan/Ghost,mtvillwock/Ghost,rwjblue/Ghost,yangli1990/Ghost,Rovak/Ghost,sebgie/Ghost,smaty1/Ghost,jaguerra/Ghost,VillainyStudios/Ghost,aschmoe/jesse-ghost-app,shrimpy/Ghost,smaty1/Ghost,Dnlyc/Ghost,patterncoder/patterncoder,virtuallyearthed/Ghost,trepafi/ghost-base,chris-yoon90/Ghost,ryansukale/ux.ryansukale.com,r14r/fork_nodejs_ghost,sergeylukin/Ghost,dYale/blog,rchrd2/Ghost,kaychaks/kaushikc.org,UnbounDev/Ghost,ryansukale/ux.ryansukale.com,davegw/dgw-website,pedroha/Ghost,dbalders/Ghost,jorgegilmoreira/ghost,dggr/Ghost-sr,sebgie/Ghost,devleague/uber-hackathon,no1lov3sme/Ghost,xiongjungit/Ghost,BayPhillips/Ghost,ballPointPenguin/Ghost,davidmenger/nodejsfan,hnarayanan/narayanan.co,jiachenning/Ghost,lukaszklis/Ghost,mdbw/ghost,hyokosdeveloper/Ghost,krahman/Ghost,ineitzke/Ghost,hilerchyn/Ghost,obsoleted/Ghost,dylanchernick/ghostblog,allanjsx/Ghost,diogogmt/Ghost,rizkyario/Ghost,pbevin/Ghost,patrickdbakke/ghost-spa,flpms/ghost-ad,dqj/Ghost,RufusMbugua/TheoryOfACoder,ineitzke/Ghost,jiangjian-zh/Ghost,STANAPO/Ghost,ThorstenHans/Ghost,sunh3/Ghost,cysys/ghost-openshift,vishnuharidas/Ghost,avh4/blog.avh4.net,leninhasda/Ghost,julianromera/Ghost,neynah/GhostSS,YY030913/Ghost,theonlypat/Ghost,nmukh/Ghost,lf2941270/Ghost,PDXIII/Ghost-FormMailer,camilodelvasto/herokughost,bosung90/Ghost,jamesyothers/Ghost,handcode7/Ghost,ManRueda/Ghost,sifatsultan/js-ghost,TribeMedia/Ghost,cwonrails/Ghost,yujingz/yujignz.com,theonlypat/Ghost,Yarov/yarov,MrMaksimize/sdg1,flpms/ghost-ad,jin/Ghost,jiangjian-zh/Ghost,TribeMedia/Ghost,jacostag/Ghost,rmoorman/Ghost,kmeurer/Ghost,dYale/blog,halfdan/Ghost,Empeeric/justanidea,etdev/blog,Sing-Li/GhostSS,cqricky/Ghost,zuphu/GhostBlog,augbog/Ghost,codeincarnate/Ghost,imjerrybao/Ghost,ygbhf/Ghost,francisco-filho/Ghost,dggr/Ghost-sr,psychobunny/Ghost,thomasalrin/Ghost,katrotz/blog.katrotz.space,ErisDS/Ghost,ignasbernotas/nullifer,singular78/Ghost,GroupxDev/javaPress,melissaroman/ghost-blog,exsodus3249/Ghost,allanjsx/Ghost,daihuaye/Ghost,delgermurun/Ghost,mohanambati/Ghost,memezilla/Ghost,bbmepic/Ghost,GarrethDottin/Habits-Design,andrewconnell/Ghost,ghostchina/website,epicmiller/pages,rouanw/Ghost,kevinansfield/Ghost,TryGhost/Ghost,akveo/akveo-blog,nakamuraapp/new-ghost,pedroha/Ghost,jaswilli/Ghost,psychobunny/Ghost,jomahoney/Ghost,BayPhillips/Ghost,shannonshsu/Ghost,ASwitlyk/Ghost,kortemy/Ghost,arvidsvensson/Ghost,rameshponnada/Ghost,AileenCGN/Ghost,riyadhalnur/Ghost,skmezanul/Ghost,Sebastian1011/Ghost,zhiyishou/Ghost,Alxandr/Blog,thehogfather/Ghost,pathayes/FoodBlog,greenboxindonesia/Ghost,johngeorgewright/blog.j-g-w.info,rito/Ghost,Shauky/Ghost,ananthhh/Ghost,hyokosdeveloper/Ghost,Netazoic/bad-gateway,AlexKVal/Ghost,bsansouci/Ghost,lanffy/Ghost,PepijnSenders/whatsontheotherside,mattchupp/blog,aschmoe/jesse-ghost-app,RufusMbugua/TheoryOfACoder,ryanorsinger/tryghost,jparyani/GhostSS,laispace/laiblog,vloom/blog,mlabieniec/ghost-env,aroneiermann/GhostJade,JulienBrks/Ghost,sfpgmr/Ghost,cqricky/Ghost,vainglori0us/urban-fortnight,lukekhamilton/Ghost,metadevfoundation/Ghost,carlosmtx/Ghost,rafaelstz/Ghost,bsansouci/Ghost,10hacks/blog,ngosinafrica/SiteForNGOs,shannonshsu/Ghost,ivanoats/ivanstorck.com,leninhasda/Ghost,rollokb/Ghost,letsjustfixit/Ghost,mnitchie/Ghost,davegw/dgw-website,Elektro1776/javaPress,rizkyario/Ghost,wemakeweb/Ghost,Brunation11/Ghost,e10/Ghost,tanbo800/Ghost,epicmiller/pages,mttschltz/ghostblog,ckousik/Ghost,yanntech/Ghost,thomasalrin/Ghost,jgillich/Ghost,mlabieniec/ghost-env,velimir0xff/Ghost,davidblurton/salmondesign-old,UsmanJ/Ghost,omaracrystal/Ghost,thinq4yourself/Unmistakable-Blog,allspiritseve/mindlikewater,choskim/GhostAzure,flomotlik/Ghost,katrotz/blog.katrotz.space,xiongjungit/Ghost,PDXIII/Ghost-FormMailer,leonli/ghost,ghostchina/Ghost.zh,Azzurrio/Ghost,kolorahl/Ghost,gabfssilva/Ghost,tyrikio/Ghost,Romdeau/Ghost,ivanoats/ivanstorck.com,greyhwndz/Ghost,netputer/Ghost,Japh/Ghost,bastianbin/Ghost,FredericBernardo/Ghost,Yarov/yarov,alecho/Ghost,STANAPO/Ghost,wangjun/Ghost,gleneivey/Ghost,davidenq/Ghost-Blog,Gargol/Ghost,situkangsayur/Ghost,ananthhh/Ghost,PepijnSenders/whatsontheotherside,weareleka/blog,lukw00/Ghost,handcode7/Ghost,morficus/Ghost,Loyalsoldier/Ghost,choskim/Ghost,DesenTao/Ghost,Elektro1776/javaPress,sajmoon/Ghost,woodyrew/Ghost,tandrewnichols/ghost,jaswilli/Ghost,Trendy/Ghost,cicorias/Ghost,fredeerock/atlabghost,tmp-reg/Ghost,lukekhamilton/Ghost,trunk-studio/Ghost,hnq90/Ghost,neynah/GhostSS,diancloud/Ghost,JulienBrks/Ghost,kwangkim/Ghost,eduardojmatos/eduardomatos.me,Jai-Chaudhary/Ghost,FredericBernardo/Ghost,NovaDevelopGroup/Academy,tyrikio/Ghost,bitjson/Ghost,janvt/Ghost,novaugust/Ghost,Brunation11/Ghost,ljhsai/Ghost,atandon/Ghost,developer-prosenjit/Ghost,gleneivey/Ghost,ghostchina/Ghost.zh,UnbounDev/Ghost,qdk0901/Ghost,arvidsvensson/Ghost,cysys/ghost-openshift,wspandihai/Ghost,jorgegilmoreira/ghost,lanffy/Ghost,benstoltz/Ghost,thinq4yourself/Unmistakable-Blog,Jonekee/Ghost,ThorstenHans/Ghost,nneko/Ghost,yujingz/yujignz.com,InnoD-WebTier/hardboiled_ghost,bisoe/Ghost,jgillich/Ghost,bastianbin/Ghost,liftup/ghost,10hacks/blog,qdk0901/Ghost,hilerchyn/Ghost,Coding-House/Ghost,cicorias/Ghost,manishchhabra/Ghost,floofydoug/Ghost,acburdine/Ghost,Kikobeats/Ghost,zeropaper/Ghost,ClarkGH/Ghost,Netazoic/bad-gateway,rouanw/Ghost,lethalbrains/Ghost,claudiordgz/Ghost,smedrano/Ghost,ljhsai/Ghost,daimaqiao/Ghost-Bridge,NovaDevelopGroup/Academy,dymx101/Ghost,tidyui/Ghost,r1N0Xmk2/Ghost,ErisDS/Ghost,karmakaze/Ghost,achimos/ghost_as,NamedGod/Ghost,lowkeyfred/Ghost,gcamana/Ghost,mayconxhh/Ghost