[Knacksteem] Loading site via http:// doesn't redirect to https://
utopian-io·@tobias-g·
0.000 HBD[Knacksteem] Loading site via http:// doesn't redirect to https://
#### Project Information * Repository: https://github.com/knacksteem/knacksteem.org * Project Name: Knacksteem #### Expected behavior When a user attempts to launch Knacksteem via HTTP they should automatically be redirected to https://, based on the following pull request https://github.com/knacksteem/knacksteem.org/pull/16 the site should automatically redirect a user when attempting to load the site via http:// #### Actual Behaviour If you visit http://knacksteem.org it will not automatically redirect the user, it will instead cause cross-origin errors and the categories will not be loaded. Overall the site was not usable via http:// #### Steps to reproduce 1. Go to http://knacksteem.org Note: The http:// within the URL #### Error Details The following errors are present in the console upon load of http://knacksteem.org  #### Issue resolution This could potentially be resolved by using: `express-force-https` in server.js First define secure as below: `const secure = require('express-force-https')` and then add `app.use(secure)` I can see that there is already `app.use(redirectToHTTPS([/localhost:(\d{4})/], [], 301));` within server.js and although I'm not familiar with that library, my solution may potentially conflict without me being able to conduct further testing. #### Environment - Browser: Google Chrome (Version 65.0.3325.162 (Official Build) (64-bit)) - Device: MacBook Pro (Retina, 15-inch, Late 2013) - Operating system: MacOS HighSierra Version 10.13 #### Reporting & Resolution Since the issue that was made here: https://github.com/knacksteem/knacksteem.org/issues/60 This issue has been resolved and if you go to http://knacksteem.org you will see that it successfully redirects you to https://knacksteem.org/. This can be seen in the following commit: https://github.com/knacksteem/knacksteem.org/commit/578eeb6d4290bd17952ff025df0b8abd7adfa35c #### GitHub Account A link to my GitHub account can be found here: https://github.com/tobias-g1
👍 supu, bitok.xyz, accelerator, bluesniper, effofex, eforucom, whitebot, sudefteri, reazuliqbal, steemtaker, dreamarif, pataty69, besheda, joaorafael, duarte9sousa, munhenhos, isabelpereira, bhaski, tiagoferezin, emilyxk13c, riapadnodea, grace0c3, chaegriltesubt, savannaha2, elizabethp6, ternutore, jasmine4p, nicoleevdi1, itypstylgesch, amosbastian, nieloagranca, jaff8, asaj, codingdefined, shebe, ayay, merlin7, ulockblock, steemchoose, arcange, hakancelik, goldkey, mcfarhat, raphaelle, penguinpablo, cryptonized, tbtek, inespereira, veritasvav, elena-singer, scipio, teamcr, magpielover, midun, curbot, espoem, knowledges, steem-plus, miniature-tiger, statsexpert, hasenmann, fego, steem-ua, tdre, themarkymark, jjay, utopian-io, ascorphat, tombstone, jga, ryuna.siege, kaczynski, someaddons, sbi3, surpassinggoogle, southparkqueen, mirza-kun, plojslydia, ranielbrianulan, awesome.ian, dysc0rd, baboyed1000, tradeownsystems, nessyquel, princekelly, odebgaming, solomonogene, kerry234, ekjosh, yanga, motivatorjoshua, berylwills, goddywise4-eu, admiralsp, andrelion, meansunlare, mariaputri17, sanyjaya, asfuriah, greenpower, pelephotography, camilus, thamrin, jefry113, mahmuddin, karyah1001, davealemana, jecren, harkushi, goalgetter, pauloliverpino, strings, ligarayk, widiaendah, kamalkhann, babaj, allaboutme, loydjayme25, hoobeehey, kul0tzzz, rheyss08, julianalpanta, sissyjill, richmanoloriegbe, jacintoelbarouki, morbyjohn, jims, aldiyani, freudy, zombieslayer, rjrudillas14, ichigos, dexter24, mhel, pipo092281, parag, muksalbaihaqi, estrellamag, layanmarissa, richgang, annamighty, dzued, mahmuliadi, arellanoyan, chukuibijenny, khloyd, akaikeru, jeanp, donjyde, faisal08, muzaiyan, zay-arasi, dondondamayo, smafey, penantang, maaz23, zohaib715, klizo, enjoyy, hasan086, handfree42, mcamayra, sexygirl123, basir92, atjehsteemit, monwalker, rhei86, beni96, toyosiartdiy, theunlimited, queenlyka, muammarnst, mikemaphu, fibrefox, belvajarandilla, anime.lovers, ihsan19, kofspades, artoraly, mercy11, bobtucks, afrin12, masud222, levinvillas, chiboyzz, ryl, evansbankx, starzy, lstriker, shahaan, bittrex12, wandy01, jayo, bravofer, rechellomataro, lykia, kejora05, gerliepepito, blackelephant, mayorhero, jaber-hossain70, morin89, purepinoy, jgpro, bobiecayao, bhim, olayemzeecool, amarm, crypto4euro, modernmclaire, used-lessboy, victoriakorol, new.diak, vlogger56, virgo27, muzzlealem, brewingstories, rextylerblunt, paulasands, mbahtutorial, rishi-sayz, sabiondico, hazelicious, kaplat, techsfair, geotorb, mukulcclbd, gnaimul, gpwebers, ahsanabdullah, mittalamit284, wave.beads, christinevelasco, liquidpoopcorn, devondrjackson, dwightjaden, kumagang, hasim5164, cheesom, matadonis, dtube-alfa, devangbuch, erenai, dazzy, ahmad097, kelvo, fachod, aikee, joanpablo, alimirza0416, chiqui03, akeenze13, marzuki-r, pharao20, rarcenal, galihtruff, whyken, cebusteemer, jezelle, femidada, chrome.citizen, rishadhaque, advsamadhan, mela65, mkmk, fadiji09, bitcoin.news, emirfirlar, breezieblack, noechie1827, alex04, sampath94, chrisjayl, greenville, beshooo, sharminwadud, roheemat, ernoldlvb, edyscout81, leeyen23, kataindah, jembee, sazid36, emeliveiga, akram7, mojacko, briandominise, boyaceh, pinkyangel, edundayo, minnowboostere, moksamol, lotfiuser, sunnylife, evolutionnow, bestsmiles, hokulor, fredoski, pboss123, preciousimo, polycarpedet, mutiarahmi, neilrichmond, magatha, joco0820, muhammad.iqbal, kyanzieuno, mayib, tammydixon, golden-man, mvoalevine, ninihorlah, noodles09, sirwayneweezy, cebuana, osky, nicole24, mypride, ronasoliva, pasokon, dantoyin, jackbawa, yuslindwi, gps7530, shippou95, adnanbtc, kike313, hrovat66, paragon99, vegasgambler, benjaspa, phoebedoll, afefe, arrahman90, jeef-zone, jsantos17, gemz2inspire, jomar07, steemitkyle, mikeyurnero, halim08, erebuta01, daldon, mindbuilder-sc, kayegrasya, bertoandes, elvinjohn21, r5yn1r4, bradondamyx12345, wanderinglynelle, freitzie123, mrwang, bloghound, haji, joshruiz, chunnorris, iamfo, ihamquentin, syamsudduha2, ninjarobo, rikilb, steem-factuals, lianbloog, membee, fauzan11, hardaeborla, vicmic, cynicalcake, david9122, jumpnrun, andylsyahputra, skyphotographer, dong-a, denkeicui, naayren, gelique, glendale05, citysitebuilders, medyomaldita, caroljayne02, lemcervantes, unika-ejes, votehumanity, foways, viralfever, pjmisa, jhanmervz, ckbahdon, engineeringfeed, tomatom, dolphinscute, eruditescholar1, kutrulaju, ramadhanil, bengeudens, egheprincez, artcreator, osakuni, jayboi, johngoad, adebits, samsonite18654, joseaybar1, digital-aster, foley, ak477, scottallen, swapsteem, choobymaverick, crystaljonah1, saifulhuri, pes7md, ljpaez, preetisingh1993, fidel66, rojellyannsotto, charitybot, greatwarrior79, loudetteiam, cradle, ilmondoditea, nigerian-yogagal, riyadhie, blessedsteemer, genesis171, byash, signup-newpeople, ekafao, maintang03, sadnesscarl, ramonjvp, idiongo, lksingha, rizzybear, sid000, pandina, chriswilson, pemburubitcoin, princezakir, minnowwboster, pipks, azisjesika, syami, mzajoke, yusifm, esl, camillius, neneandy, vygimau5, annalorin28, rachelleignacio, lemareg, carolinafer, randomkindness, gio.vanne, adigun12, rajesh1000, mdsohagm752, rawpostblog, alatomz, hmuajanice, dreamseller, forhadh, semtroneum, alom8, davidsams, daddywilliam, naveedakhtar6283, holatati, bluebella, yahman, superstar65, amanpathak, mrogy1, maticpecovnik, jjohnson78, pahrtenope, abrahamcera, patchnotes, martzpro, annnaa, alchemylgc, mrnightmare89, walisongo, rakan-sikula, angoujkalis, antisocialian, jeongji, kirstenboic, shahidullah832, qusain, onire19, lvpjulio, imkinggirl, martinstomisin, greatlord, mikael19, kealagan, marzukie, dokter-purnama, alexander-bobs, marivic10, jakedavis224, dktrending341, ancgci, drbtc, eternalsuccess, josuepalacios, thienduc, rajaumer837, writeandearn, studytext, shiddiq, razik9708, shiddiq000, kawan-baru, shiddiqmjmr, k-syusteem, fikar22, charitymemes, elangzone, fadliloways, tony-duke, dizzyjay, umut1905, iamwhatiamnot, alien-mastermind, ireneblessing, digital.mine, jayfamous, beanenergy, faithvarron, eightbitfiction, mirna98, stuckinacup, arisviyo, ihal0001, oclinton, asagikulak, cypher01, lakawero, ingpablojosue, mf2hdlife, pichat, mrstaf, cmbugua, efsun2007, wealth4good, desikaamukkahani, khunfarang, khunpoom, open-asset, digital-jesus, filzaart, samdman, iswanisamion, abysoyjoy, husana, midary, sm-cards, mrandreas, aryolan1drinks, rival, tolarnee, simgirl, rosemarynoble, steemdragon, zeshanjaved, pushpo, rosenderevies, rigelmarco, zenc, cobloc, abyni, cap.potato, letzsteem, eurogee, eduardonarvaez, aehiguese, lifediaries2nd, reungkhoem, nonsqtr, carloniere, ninyea, marysent, hillaryaa, williams-owb, mrxplicit, onin91, frellarong, aljoursantillan, luijii, lykaypajaro, isaaceko, sukro, isaganicabrales, tentalavera, cordeta, raquelita, badzkie123, orhem, gwapoaller, keybordjp, steeman220, geezyweezy, nanwaiwaimyint, sunshinebear, blaqboyikott, khat.holanda23, bgmuna, jacobzeema, bumut, laura97, chinwengozi, friskykitty, tjessie, bitmycoin, everydaybitcoin, syawalkoki, nantzjbalayo, viralz, puregrace, mwamin7, steinz, piyova007, crypto34, mimi87, sojol527, mollythegreat, dianation, hope-on-fire, metehn, pennsif,