HelloZeroNet / HelloZeroNet/ZeroNet
Zeronet UI does not work without HTTP Accept header
- Ngôn ngữ chính
- JavaScript
- Star
- 18.8k
- Fork
- 2.3k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Step 1: Please describe your environment
* ZeroNet version: 0.6.2
* Operating system: Linux
* Web browser: Firefox
* Tor status: enabled
* Opened port: yes
* Special configuration: I2P Tunnel
### Step 2: Describe the problem:
Zeronet Ui expects HTTP `Accept` header to contain at least `text/html`. I2P tunnels remove `Accept` header from the request, which does not allow to access Zeronet due to the following check:
https://github.com/HelloZeroNet/ZeroNet/blob/master/src/Ui/UiRequest.py#L283
#### Steps to reproduce:
1. Send HTTP request without `Accept` HTTP header to Zeronet UI address
#### Observed Results:
Zeronet returns HTTP 403 `Invalid Accept header to load wrapper` error.
#### Expected Results:
Zeronet ignores absence of HTTP `Accept` header and continue to work.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu tại src/Ui/UiRequest.py quanh dòng 283 và tái hiện sự cố bằng cách gửi một yêu cầu HTTP không có tiêu đề Accept đến địa chỉ UI của ZeroNet. Xác minh rằng yêu cầu không còn trả về HTTP 403 và UI vẫn có thể truy cập khi thiếu tiêu đề.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- backend
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 45/100