Skip to content

Commit c74bd48

Browse files
committed
docs: fix images not loading
1 parent 2a7cb75 commit c74bd48

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

packages/docs/src/routes/playground/index!.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,13 @@ export interface PlaygroundStore extends ReplAppInput {
129129
shareUrlTmr: any;
130130
}
131131

132-
export const onGet: RequestHandler = ({ cacheControl }) => {
132+
export const onGet: RequestHandler = ({ cacheControl, headers }) => {
133133
cacheControl({
134134
public: true,
135135
maxAge: 3600,
136136
});
137+
138+
// Needed for SharedArrayBuffer in the REPL
139+
headers.set('Cross-Origin-Opener-Policy', 'same-origin');
140+
headers.set('Cross-Origin-Embedder-Policy', 'require-corp');
137141
};

packages/docs/src/routes/[email protected]

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)