Needed fix for corsProxy (server operators must read)
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 30/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript, node.js
研究方向
首先定位 corsProxy 的實作及其要求處理測試;該 issue 未指定任何檔案或測試。驗證缺少 Origin 值或 Origin 值未獲授權時的行為,以及下游回應不包含 RDF 內容類型時的行為。完成的標準是這些情況回傳 400 或類似結果,同時允許的 RDF 回應繼續正常運作。
由索引模型根據 Issue 內容生成。
描述
Action required
If you are an NSS server operator, please check that your settings use the default "corsProxy": false.
If you have a public facing server with "corsProxy": true, please change it to "corsProxy": false until the suggested fix below is deployed.
Fix
The CORS proxy needs to be changed as follows:
- If no
Originfield present in the HTTP request, respond with a400or similar. - If the
Originvalue in the request is not the server's configured domain (podhost.example) or a direct subdomain thereof (alice.podhost.example), respond with400or similar. - If, after satistying the above two conditions, the response received from the downstream server does not indicate an RDF content type in its headers (such as Turtle, HTML, etc.), respond with
400.- In particular, images, videos, PDFs etc. must result in a
400. - The connection to the downstream server can and should be closed prematurely if the content type is not RDF.
- In particular, images, videos, PDFs etc. must result in a
- 主要語言
- JavaScript
- 星號
- 1.8k
- 分支
- 308
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
nodeSolidServer/node-solid-server 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 72/100
nodeSolidServer/node-solid-server#1848 · 2 則留言 · 1 個 reaction ·
-
難度 2/5 1-3 小時 新手友好度 65/100
nodeSolidServer/node-solid-server#1841 · 2 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
nodeSolidServer/node-solid-server#1147 ·
-
難度 4/5 3-5 天 新手友好度 35/100
nodeSolidServer/node-solid-server#1867 ·
-
難度 5/5 一週以上 新手友好度 45/100
nodeSolidServer/node-solid-server#1853 ·
查看 nodeSolidServer/node-solid-server 的全部 Issue
相似的 Issue
-
bug
難度 1/5 1 小時以內 新手友好度 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
難度 2/5 1-3 小時 新手友好度 85/100
getsentry/sentry-javascript#24577 · 1 則留言 ·
-
curation good first issue
難度 2/5 1-3 小時 新手友好度 88/100
amponce/archive-movie-browser#186 ·
-
light
難度 2/5 1-3 小時 新手友好度 85/100
aemdemos/patients-stryker#253 ·
-
難度 2/5 1-3 小時 新手友好度 86/100
clerk/javascript#9852 ·