Support COEP require-corp for public extension asset responses
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Public assets are served from /vscode/asset/**, which 302s to the storage/CDN URL. Add Cross-Origin-Resource-Policy: cross-origin on both the redirect and the final public asset response, leaving existing CORS headers in place and not applying this to authenticated APIs. Done when a no-cors img load of an Open VSX icon works under COEP require-corp. CDN header changes for open-vsx.org may need EclipseFdn/open-vsx.org.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
Public extension assets served through Open VSX cannot currently be embedded by pages using:
Cross-Origin-Embedder-Policy: require-corp
when the resource is requested in no-cors mode, such as an <img> element without a crossorigin attribute.
This affects cross-origin-isolated web IDEs that load extension icons and other public assets from Open VSX. If the COOP/COEP headers are not configured, the SharedArrayBuffer of the origin server will not be usable.
Reproduction
Serve the following page with Cross-Origin-Embedder-Policy: require-corp:
<img src="https://open-vsx.org/vscode/asset/ms-python/vscode-python-envs/1.36.0/Microsoft.VisualStudio.Services.Icons.Default?targetPlatform=universal" />
Chromium blocks the request with an error similar to:
net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep
Current response chain
The asset endpoint first returns a redirect:
GET https://open-vsx.org/vscode/asset/ms-python/vscode-python-envs/1.36.0/Microsoft.VisualStudio.Services.Icons.Default?targetPlatform=universal
HTTP/2 302
Location: https://openvsx.eclipsecontent.org/ms-python/vscode-python-envs/1.36.0/icon.png
Access-Control-Allow-Origin: <request origin>
The CDN then returns the image:
GET https://openvsx.eclipsecontent.org/ms-python/vscode-python-envs/1.36.0/icon.png
HTTP/2 200
Content-Type: image/png
Access-Control-Allow-Origin: *
Neither response currently includes:
Cross-Origin-Resource-Policy: cross-origin
The existing CORS headers do not help when the resource is requested in no-cors mode. Under COEP: require-corp, a response without a valid CORP header
defaults to same-origin and is therefore blocked.
The Fetch Standard performs the CORP check before following an HTTP redirect, so both the initial redirect response and the final CDN response need to opt in:
https://fetch.spec.whatwg.org/#http-fetch
Expected behavior
Public extension assets should be loadable from cross-origin-isolated applications using COEP: require-corp.
Suggested direction
For public extension asset delivery:
- Add
Cross-Origin-Resource-Policy: cross-originto responses from public asset endpoints such as/vscode/asset/**, including redirect responses. - Ensure the final resource returned by the configured storage provider or CDN also includes the same header.
- Keep the existing CORS headers for consumers that explicitly use CORS mode.
- Scope this behavior to public extension assets rather than authenticated or user-specific API responses.
The final CDN header may require deployment-specific configuration for the public open-vsx.org instance. The core implementation could define or document the
required response-header contract, with the corresponding infrastructure change tracked in EclipseFdn/open-vsx.org if necessary.
- Ngôn ngữ chính
- Java
- Star
- 2.1k
- Fork
- 362
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 44
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 eclipse-openvsx/openvsx
-
`ovsx verify` fails for a version older than the 100 newest of an extensionCó thể đã có người làm @trivikr đã nhận hôm nay. Đang mởcli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 81/100
eclipse-openvsx/openvsx#2482 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
eclipse-openvsx/openvsx#2469 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
eclipse-openvsx/openvsx#2423 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
eclipse-openvsx/openvsx#2476 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
eclipse-openvsx/openvsx#2439 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-openvsx/openvsx
Issue tương tự
-
32x and 48x Item Model IssuesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Magic-team-jvav/confluence#281 ·
-
CVE-2026-139999 react-routerĐang mởarea/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[DEFECT] AsciiDoc builders write a stray ## before every schema member when the namespace prefixes file binds the schema's own namespaceCó thể đã có người làm @Beehtrix đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cimug-org/CIMTool#427 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
userRaised
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eclipse-openj9/openj9#25285 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Range type (eg Condition.onsetRange) fails IPS $summary + Observation.valueQuantity only render value in narrativeCó thể đã có người làm @xmhorsehead đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
hapifhir/hapi-fhir#8952 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày