Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    velocity.js file being served as http rather than https

    Installing Bagisto
    2
    6
    1449
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      monder last edited by

      I've just deployed bagisto onto a test environment and enabled https but the velocity.js file is still being served over http rather than https which means it's not loading the file correctly.

      https://omo0y04moyombfeb4701.cleaver.rocks/

      I'm using a paas solution to handle the setup of the server and it's using a specific laravel setup so I'm assuming the server is setup as per laravel recommendations.

      It's on a nginx web server rather than apache. I'm not sure if this is a web server issue or bagisto not returning the correct protocol.

      Are you able to help?

      1 Reply Last reply Reply Quote 0
      • sanjay-webkul
        sanjay-webkul last edited by

        Hi @monder
        Which version of bagisto are you using ?

        1 Reply Last reply Reply Quote 0
        • M
          monder last edited by

          Hi @sanjay-webkul

          I'm on v1.4.3

          1 Reply Last reply Reply Quote 0
          • M
            monder last edited by

            okay, worked out it's due to this in the layout.blade.php file

            <meta name="base-url" content="{{ url()->to('/') }}">

            The url() function is returning http rather than https which means in the app-core.js file calling the getBaseUrl function is returning the http url.

            Anybody got any ideas on how to fix this?

            1 Reply Last reply Reply Quote 0
            • sanjay-webkul
              sanjay-webkul last edited by

              Hi there,
              As i can see the velocity.js file is being served as https.
              Please find the Link here

              1 Reply Last reply Reply Quote 0
              • M
                monder last edited by

                I've been playing around with this the past couple of days and I've had to put the below in the AppServiceProvider.php boot method

                URL::forceScheme('https');

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post