express-sslify - Forcing Express.js application to use HTTPS (SSL) (watch also

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 45

  • @zen123w
    @zen123w Рік тому

    I enjoyed that you showed your trouble shooting process. Plus adding a follow up video.

    • @gordoncoding
      @gordoncoding  Рік тому

      Many thanks for your comment. It is a great encouragement to me ^^

  • @edgarrobledo3322
    @edgarrobledo3322 3 роки тому

    Thank you for the help man, i've been looking everywhere for an answer.

    • @gordoncoding
      @gordoncoding  3 роки тому

      Welcome ^^ Please watch #3b as well

  • @nuclearbacon1
    @nuclearbacon1 3 роки тому

    Thank you so much! Liked and subbed :)

    • @gordoncoding
      @gordoncoding  3 роки тому

      Thanks for the sub!
      Please also follow lesson 3b : Not forcing SSL on localhost
      ua-cam.com/video/8h4CZ0P1qy0/v-deo.html

  • @evanbero9705
    @evanbero9705 2 роки тому +1

    Nice tutorial, Gordon. Thank you. It works.

    • @gordoncoding
      @gordoncoding  2 роки тому +1

      Glad my video helps~ I used this and then the localhost version bugged, so I follow up with another video about how to not forcing ssl on localhost, which you have also watched already~

  • @codedynamics1
    @codedynamics1 3 роки тому

    XSS issue: 'This site requires a TrustedScripts assignment'
    Hi Gordon, i'm getting this bug in the browser:
    ua-cam.com/video/vYA81UAExKA/v-deo.html&ab_channel=ZeroNights..
    Have you ran into this before ... Ive been searching 3 days now and ive found out that it's a security bug that warns of vulnerabilities (DOM sinks) in the HTML where an attacker could potentionally steal sensitive info and in order to remedy it, you will need the following:
    Content-Security-Policy Header
    'Trusted Types' package
    etc ...
    Did u run into this when hosting on heroku ?

    • @gordoncoding
      @gordoncoding  3 роки тому

      Nope, I havn't met this problem before.

  • @flameprincess7313
    @flameprincess7313 3 роки тому

    "An error occurred during a connection to 127.0.0.1:5000. SSL received a record that exceeded the maximum permissible length."
    Edit: Nvm, it works now I read your other answers. Needed this fix: ua-cam.com/video/8h4CZ0P1qy0/v-deo.html

    • @gordoncoding
      @gordoncoding  3 роки тому

      Many thanks for your comment, Flame Princess.
      Sorry that I had not taught relevant topic in the same video, and that the previous linking is not clear enough. I have just revised video title and thumbnail to emphasize the need to watch #3b of this series as well.
      Hope it helps in future occasions for the others.
      Thanks once again for pointing this out.

  • @dtisue85
    @dtisue85 3 роки тому

    Do I still need the .htacces file or is that irrelevant to to express-sslify working?

    • @gordoncoding
      @gordoncoding  3 роки тому

      .htaccess is for some host.
      If you are using express-sslify, you don't need .htaccess

  • @sethmccullough4670
    @sethmccullough4670 3 роки тому

    Exactly what I needed, thank you!

    • @gordoncoding
      @gordoncoding  3 роки тому

      I'm glad that my video helps ^^
      Please also watch lesson #3b
      ua-cam.com/video/8h4CZ0P1qy0/v-deo.html

  • @MZ-yx8eg
    @MZ-yx8eg 2 роки тому

    so clear explanation i subscribe

  • @almakay01
    @almakay01 2 роки тому

    you are the man! seriously !

    • @gordoncoding
      @gordoncoding  2 роки тому

      Thanks ^^
      Remember to watch the next video : "Not forcing on localhost" also~

  • @therustguy10
    @therustguy10 4 роки тому

    Thank you Soo much. You are worth my follow I love the way you went through the whole taught process and even the issues on GitHub. You are worth my follow. Hope to see more amazing videos from you!❤️❤️❤️❤️❤️❤️

    • @gordoncoding
      @gordoncoding  4 роки тому

      Thanks for your appraisal. I'm glad that you like my style. I will try my best to give more useful contents ^^

    • @gordoncoding
      @gordoncoding  4 роки тому

      And one more important point: Follow the extra step at #3b also:
      ua-cam.com/video/8h4CZ0P1qy0/v-deo.html
      Because the way in #3a works for our custom domains. But for localhost, we don't have SSL certificate, so we should "not force" HTTPS connection, by adding if statement checking on the process.env

  • @caleblee7989
    @caleblee7989 3 роки тому

    Thanks so much for the tutorial, do you also know how to upload Node.js app sitemap to google search console?

    • @gordoncoding
      @gordoncoding  3 роки тому +1

      Thanks. Sure, I'll record a video to demonstrate it. I'll post the link here when available.

  • @ahlambeyoud1709
    @ahlambeyoud1709 3 роки тому

    thank you so much for this tutorial, you are the only one on youtube who did this tutorial! great work :) please continue making good content like this :)

    • @gordoncoding
      @gordoncoding  3 роки тому +1

      You are welcome ^^
      Please also watch #3b to not force SSL at localhost.
      ua-cam.com/video/8h4CZ0P1qy0/v-deo.html
      Many thanks for your encouragement. I'm planning a Node.js series with using view templates, cloud database and authentication, hope it will help you too ^^

  • @itsdrdy5551
    @itsdrdy5551 4 роки тому

    didnt work for me :(

    • @gordoncoding
      @gordoncoding  4 роки тому

      Can you let me know more? Are you using Node.js? What are the versions?

    • @gordoncoding
      @gordoncoding  4 роки тому +1

      Have your problem been solved? Let's have a LIVE session to solve your problem if it's not.

  • @abdulwahabkhan1329
    @abdulwahabkhan1329 4 роки тому

    please make a video on how to attach Google Analytics with the Node.js web app

  • @abdulwahabkhan1329
    @abdulwahabkhan1329 4 роки тому

    This is exactly what I was looking for.. Thank you so much

    • @gordoncoding
      @gordoncoding  4 роки тому +1

      You are welcome ^^
      You will also need to check the env so in localhost, it doesn't force you to SSL.
      If there is problem let me know and I'll show you how.

    • @gordoncoding
      @gordoncoding  4 роки тому +1

      Please also do the adjustment as demonstrated in #3b:
      ua-cam.com/video/8h4CZ0P1qy0/v-deo.html

  • @dtisue85
    @dtisue85 3 роки тому

    Also, not working for me either.

    • @gordoncoding
      @gordoncoding  3 роки тому

      Would you mind sharing your code in GitHub so I can examine the codes?

    • @dtisue85
      @dtisue85 3 роки тому

      Yeah sure. Only thing is I also have 3 domain names for this site and a sub domain for each. Would that have anything to with it? I just set these up less than 24hrs ago.

    • @gordoncoding
      @gordoncoding  3 роки тому

      It has nothing to do with the 3 domain names, as long as all the domain names each have a valid SSL certificate.
      I have created a Pull Request on your GitHub repository. Basically there are two issues:
      Issue 1: Sequence of codes
      enforce.HTTPS has to be called first
      Ref: github.com/florianheinemann/express-sslify/issues/25
      Issue 2: Spelling mistake
      env not enve
      Ref: github.com/florianheinemann/express-sslify/issues/22
      Please merge it and try.
      Look forward to knowing your result.

    • @dtisue85
      @dtisue85 3 роки тому

      @Gordan Chan thank you for your help but now its giving me a different error:
      This site can’t provide a secure connectionwww.olivieriphoto.net sent an invalid response.
      ERR_SSL_PROTOCOL_ERROR
      I'm wondering if Heroku caught on and still isn't allowing this to convert to Https://

    • @dtisue85
      @dtisue85 3 роки тому

      Actually, I just found my error. I didn't realize that I needed my own manual install of SSL certs for this to work. I have no SSL certificates for any of these. I think I misunderstood this from the beginning. But, quick question, if i get those SSL certs manually installed into the app, will it work then?