http.cors is documented as default true; the schema default is false and only a dev-mode install writes true
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- markdown, typescript, yaml
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu với ba trang tài liệu đã nêu và xác minh các giá trị mặc định dựa trên static/defaultConfig.yaml và utility/install/installer.ts. Đọc trình xử lý CORS trước khi ghi tài liệu về ý nghĩa của corsAccessList: [null]. Hoàn tất khi các trang phân biệt giá trị mặc định của schema với cài đặt cài đặt ở chế độ dev và giải thích chính xác giá trị của danh sách truy cập.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The documentation says the application HTTP port's http.cors defaults to true. The schema default is false; true with corsAccessList: ['*'] is only what a dev-mode install writes into the config file.
Affected pages:
reference/http/configuration.md(### http.cors): "Default:true"reference/configuration/options.md: "cors... Default:true"learn/getting-started/install-and-connect-harper.mdx: "HTTP (and WS): 9926, CORS: enabled for *"
A user who deploys with production defaults (or a non-interactive install without a dev-mode flag) gets no Access-Control-Allow-Origin from the application port, contrary to the docs.
Evidence
On harper main: static/defaultConfig.yaml has http.cors: false and corsAccessList: [null]; only the operations API block ships cors: true, corsAccessList: ['*']. utility/install/installer.ts defines DEV_MODE_CONFIG, which sets http_cors: true and a * access list when the install is in dev mode (the interactive default). A non-interactive install without the dev-mode setting is treated as production and does not set them.
Not measured: the effective value on an installed instance via get_configuration.
Proposed fix
- In
reference/http/configuration.mdandreference/configuration/options.md: "Default:false(a dev-mode install writestruewithcorsAccessList['*'])". - In the install guide, say the
*CORS setting applies to dev-mode installs. - Add a note beside
corsAccessListstating what the shipped[null]value means once CORS is enabled (confirm against the CORS handler before wording it).
Related
Related config docs issues: documentation#530 (MCP Origin validation), documentation#151 (corsAccessControlAllowHeaders); neither covers the default.
Source: QA finding SF-79 (finding-triage wave 47)
- Ngôn ngữ chính
- MDX
- Star
- 9
- Fork
- 9
- Merge trung bình
- 5 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 48
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của HarperFast/documentation
-
Document http.maxRequestBodySize (REST, MCP application endpoint, and operations API body limits)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
HarperFast/documentation#806 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
content
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
HarperFast/documentation#785 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
content
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
HarperFast/documentation#770 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
content
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
HarperFast/documentation#769 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
HarperFast/documentation#768 ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của HarperFast/documentation
Issue tương tự
-
入群码过期Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
aliyun/ai-agent-handbook#29 · 1 bình luận ·
-
docs documentation need-triage SaaS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Sync EN] stream: document the errors of the stream_context_*() and stream filter functions (#6091)Đang mởsync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Sync EN] stream: document the errors of the stream_context_*() and stream filter functions (#6091)Đang mởsync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
sleepyviper1213/redis#30 ·