Base solution for your next web application
Open Closed

Enable SSL #3914


User avatar
0
avanekar02 created

Assalam alaikom

Do you have a sample or document which shows how to enable Security as my site has payment gateway involved. Also customer data needs to be secured while accessed .

Regards Anwar


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @avanekar02,

    We don't have such a document but it's a common issue for web applications. You can find many documents on the web for this.

    After enabling https, in AspNet Zero part, you just need to configure your url's in confi with <a class="postlink" href="https:///">https:///</a>

    Thanks.

  • User Avatar
    0
    soonjoo created

    I need help with this too, I have managed to set up for my .net core api, however, I tried but failed at doing it with the angular app. I have enforced https on the API, however, the angular app keeps calling the http version of the API and it gets redirected to the proper https link, but it changes all the POST requests to GET and I can't even authenticate anymore. Very much appreciate if there is https document, since your template already have payment gateway integrated, all of us need SSL.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @soonjoo,

    For angular part, you just need to change url's to https in <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/assets/appconfig.json">https://github.com/aspnetzero/aspnet-ze ... onfig.json</a>. Have you done that ?

  • User Avatar
    0
    soonjoo created

    hi, thanks for your reply, I have changed that already, however i needed to change npm start to

    "start": "ng serve --host 0.0.0.0 --port 4200 -ssl true",
    

    inside package.json and now it works.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @soonjoo Great :)