HelloZeroNet / HelloZeroNet/ZeroNet

Zeronet UI does not work without HTTP Accept header

オープン
#1,346 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
18.8k
フォーク
2.3k
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start at src/Ui/UiRequest.py around line 283 and reproduce the issue by sending an HTTP request without an Accept header to the ZeroNet UI address. Verify that the request no longer returns HTTP 403 and that the UI remains accessible when the header is absent.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
backend
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。