We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e092c4 commit 69fa94aCopy full SHA for 69fa94a
examples/server/server.cpp
@@ -4376,6 +4376,9 @@ int main(int argc, char ** argv) {
4376
res.set_content("Error: gzip is not supported by this browser", "text/plain");
4377
} else {
4378
res.set_header("Content-Encoding", "gzip");
4379
+ // COEP and COOP headers, required by pyodide (python interpreter)
4380
+ res.set_header("Cross-Origin-Embedder-Policy", "require-corp");
4381
+ res.set_header("Cross-Origin-Opener-Policy", "same-origin");
4382
res.set_content(reinterpret_cast<const char*>(index_html_gz), index_html_gz_len, "text/html; charset=utf-8");
4383
}
4384
return false;
0 commit comments