Mixed content #755

Closed
opened 2026-02-04 22:10:50 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @psychonetic on GitHub (Jul 23, 2018).

  • BookStack Version: BookStack v0.22.0
  • PHP Version: 7.1
Expected Behavior

Load everything via https.

Current Behavior

Page is loaded via https, but chrome says mixed content, because the logo (top left corner) is loaded via http.

Originally created by @psychonetic on GitHub (Jul 23, 2018). * BookStack Version: BookStack v0.22.0 * PHP Version: 7.1 ##### Expected Behavior Load everything via https. ##### Current Behavior Page is loaded via https, but chrome says mixed content, because the logo (top left corner) is loaded via http.
OVERLORD added the 🐕 Support label 2026-02-04 22:10:50 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 29, 2018):

Hi @psychonetic,
Sorry for my late response, Can you try setting APP_URL=https://my-site.com in your .env file (And obviously change the URL to be your BookStack URL) to see if that fixes it?

@ssddanbrown commented on GitHub (Jul 29, 2018): Hi @psychonetic, Sorry for my late response, Can you try setting `APP_URL=https://my-site.com` in your `.env` file (And obviously change the URL to be your BookStack URL) to see if that fixes it?
Author
Owner

@psychonetic commented on GitHub (Jul 29, 2018):

Hi @ssddanbrown,

yeah I did already. Also tried to use https://stackoverflow.com/questions/35304448/laravel-change-base-url the solution there, but nothing worked. (Yes, I have cleaned the cache).

@psychonetic commented on GitHub (Jul 29, 2018): Hi @ssddanbrown, yeah I did already. Also tried to use https://stackoverflow.com/questions/35304448/laravel-change-base-url the solution there, but nothing worked. (Yes, I have cleaned the cache).
Author
Owner

@ssddanbrown commented on GitHub (Jul 29, 2018):

@psychonetic Thanks for trying that.

BookStack will already force the URL if APP_URL is set so no need to change anything as per the stack overflow link.

I just checked how the logo is set, This should work:

  1. Ensure APP_URL is set.
  2. Go to settings.
  3. Set the logo to be any random image (Will be temporary).
  4. Save.
  5. Go back to settings and select 'reset' under the logo then save.

Hopefully that'll toggle it so the saved logo link is updated.

@ssddanbrown commented on GitHub (Jul 29, 2018): @psychonetic Thanks for trying that. BookStack will already force the URL if `APP_URL` is set so no need to change anything as per the stack overflow link. I just checked how the logo is set, This should work: 1. Ensure `APP_URL` is set. 2. Go to settings. 3. Set the logo to be any random image (Will be temporary). 4. Save. 5. Go back to settings and select 'reset' under the logo then save. Hopefully that'll toggle it so the saved logo link is updated.
Author
Owner

@vladiiancu commented on GitHub (Aug 23, 2018):

Just wanted to add that setting up the APP_URL variable fixed my mixed content issue that i had after a fresh install (all CSS + JS were loaded from http).

@vladiiancu commented on GitHub (Aug 23, 2018): Just wanted to add that setting up the APP_URL variable fixed my mixed content issue that i had after a fresh install (all CSS + JS were loaded from http).
Author
Owner

@ssddanbrown commented on GitHub (May 18, 2019):

Since the last comment on this issue is relatively old I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.

@ssddanbrown commented on GitHub (May 18, 2019): Since the last comment on this issue is relatively old I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#755