Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Set Backend Server URL as HTTPS in Firefox #401

Open
iceout opened this issue Dec 18, 2024 · 5 comments
Open

Unable to Set Backend Server URL as HTTPS in Firefox #401

iceout opened this issue Dec 18, 2024 · 5 comments

Comments

@iceout
Copy link

iceout commented Dec 18, 2024

In Firefox, if the backend server URL is set to HTTPS, it results in an error: "HTTP authentication failed." when open Scrapbook. The same URL works perfectly fine in Chrome. If the URL is changed to HTTP, Scrapbook can be opened normally, but every request requires entering a username and password.

WebScrapBook version: 2.16.1
Firefox version: 133.0.3
OS version: MacOS 15.1.1

@danny0838
Copy link
Owner

What is your config of the backend server?

@iceout
Copy link
Author

iceout commented Dec 18, 2024

https://github.com/vsc55/docker-PyWebScrapBook/tree/master I use this docker image as backend server

@danny0838
Copy link
Owner

Please provide the full config of the backend server for HTTP and HTTPS. (You can get it through wsb config under the root directory in the CLI)

Where do you see the error in Firefox and Chrome? Please be more specific or provide screenshots to illustrate that.

@iceout
Copy link
Author

iceout commented Dec 21, 2024

The config file:

[app]
name = WebScrapBook
theme = default
locale =
root = ./store/
index =
backup_dir = .wsb/backup
content_security_policy = strict
allowed_x_for = 0
allowed_x_proto = 0
allowed_x_host = 0
allowed_x_port = 0
allowed_x_prefix = 0

[server]
port = 8080
host = 0.0.0.0
ssl_on = false
ssl_key =
ssl_cert =
ssl_pw =
browse = false

[browser]
command =
cache_prefix = webscrapbook.
cache_expire = 259200
use_jar = false

[book ""]
name = scrapbook
top_dir =
data_dir = data
tree_dir = tree
index = tree/map.html
no_tree = false
new_at_top = false
inclusive_frames = true
static_index = false
rss_root =
rss_item_count = 50

[auth "usernameXXX"]
user = usernameXXX
pw = pbkdf2:sha256:600000XXXHASH
permission = all

When setting the backend to HTTPS in Firefox, click "Open scrapbook"
截屏2024-12-21 10 04 48

and then an error will appear
截屏2024-12-21 10 34 07

This error only occurs in Firefox, Chrome works perfectly

@danny0838
Copy link
Owner

ssl related entries must be set in the backend for HTTPS to work. Read doc for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants