• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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
1.4k
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 11 Jun 2022, 08:54

    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 13 Jun 2022, 09:32

      Hi @monder
      Which version of bagisto are you using ?

      1 Reply Last reply Reply Quote 0
      • M
        monder last edited by 13 Jun 2022, 21:08

        Hi @sanjay-webkul

        I'm on v1.4.3

        1 Reply Last reply Reply Quote 0
        • M
          monder last edited by 19 Jun 2022, 09:10

          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 20 Jun 2022, 05:58

            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 20 Jun 2022, 22:13

              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
              1 out of 6
              • First post
                1/6
                Last post