Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- TypeScript version upgraded from `4.4.4` to `4.7.4`.
- `PlaygroundConnectedElement` `project` is now permitted to be `undefined` according to TypeScript.

### Added

- The service worker now sets the [`Cross-Origin-Embedder-Policy: require-corp`](https://html.spec.whatwg.org/multipage/origin.html#coep-require-corp)
heading on all responses.

## [0.16.3] - 2022-08-02

### Added
Expand Down
1 change: 1 addition & 0 deletions src/service-worker/playground-service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const getFile = async (_e: FetchEvent, path: string, sessionId: SessionID) => {
// https://web.dev/origin-agent-cluster/
// https://html.spec.whatwg.org/multipage/origin.html#origin-keyed-agent-clusters
headers.set('Origin-Agent-Cluster', '?1');
headers.set('Cross-Origin-Embedder-Policy', 'require-corp');
if (contentType) {
headers.set('Content-Type', contentType);
}
Expand Down