• Login
  • Register

DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

How to fix http/https url generation inside module settings/edit modal window iframe?

You are not authorized to post a reply.
Sort:


New Member


Posts:2
New Member

    For some reason DNN generates url for src of iframe inside every modal for editing module or module settings with different protocol on localhost and prod. On localhost when page is opened via https, iframe also has https url. At the same time on prod when page is opened via https, DNN generates http url there for some reason. As result I'm experiancing this issue:

    https://dnnsupport.dnnsoftware.com/hc/en-us/articles/360004707174-Fixing-Mixed-Content-Warnings-when-using-SSL-Offloading-

    Disabling modals would be really stupid solution as I need editing and settings for DNN modules. So I used workaround with meta tag added to a website via PersonaBar.

    That fix actually works, but firstly, it's not the most convenient solution. Secondly, it's a crutch. If localhost can generate https link, then it means that prod also can. But why it doesn't? It's a code that is generated by DNN, not by my code. So as result I don't understand right now what's going on about it and why.

    P.S. Just in case to clearify what I'm talking about:

    • login as superuser to your website
    • click pencil button to edit page
    • hover over any DNN module
    • click pencil icon "Edit module" or gear icon "Settings" (doesn't matter)
    • that's the modal window with iframe I'm talking about


    New Member


    Posts:10
    New Member

      Hi Constantine,
      You can try to enable SSL in Security > More > SSL SETTINGS.
      Best regards,
      Linda

      -
      Website: https://www.dnngo.net
      E-mail account: [email protected]
      Skype: dnngo-linda


      Basic Member


      Posts:31
      Basic Member

        Posted By dnngo-Linda on 20 Jun 2022 02:32 AM
        Hi Constantine,
        You can try to enable SSL in Security > More > SSL SETTINGS.


        This does not fix the issue either, I'm not sure when it started but on a fresh instance of 9.10.2 there is no way to get the modal popups to load in https through DNN, short of placing an IIS rewrite rule for http to https for all requests

         



        Veteran Member


        Posts:596
        Veteran Member

          How are the site settings? Because I had issues with canonical urls. If I set the aliasses as redirect, things were ok
          Tjep's digital agencyRegards,
          Tycho de Waard

          Tjep's digital agency
          We just love DNN
          https://www.tjeps.com


          New Member


          Posts:2
          New Member

            dnngo-Linda, for "IIS rewrite rule for http to https for all requests" to work I need browser to send request to server first. But browser refuses to send http request from https page at all. So it doesn't even get to server.

            You are not authorized to post a reply.

            These Forums are dedicated to discussion of DNN Platform.

            For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

            1. If you have (suspected) security issues, please do not post them in the forums but send an email to [email protected]
            2. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
            3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
            4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
            5. No Flaming or Trolling.
            6. No Profanity, Racism, or Prejudice.
            7. Site Moderators have the final word on approving / removing a thread or post or comment.
            8. English language posting only, please.

            Would you like to help us?

            Awesome! Simply post in the forums using the link below and we'll get you started.

            Get Involved