microsoft / microsoft/vscode-livepreview
Make sure CORP headers are sent
Open
@andreamah is already working on this.
Since Oct 26, 2023.
feature-request
verification-needed
- Dominant language
- TypeScript
- Stars
- 596
- Forks
- 119
- Avg merge
- 1d 4m
- Merged PRs (30d)
- 5
Description
With the adoption of Cross Origin Isolation in vscode.dev and github.dev, servers which serve content to those pages need to send in the CORP header as well. Something as simple as this should do it:
Cross-Origin-Resource-Policy: cross-origin
To validate:
- Open a Codespace
- Append to the URL
?vscode-coi=onand submit - Install the LivePreview extension
- Preview an HTML file
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.