Skip to content

Commit

Permalink
include the apache httpd configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Mar 15, 2023
1 parent 04a2166 commit 79c7a72
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,20 @@ Node.js
SQLITE_DEBUG=vfs,threads,cache mocha
```

# Apache httpd configuration fragment

These are all the options required for maximum performance:

```
<Location "/">
Header always append Cross-Origin-Embedder-Policy "require-corp"
Header always append Cross-Origin-Opener-Policy: "same-origin"
AddOutputFilterByType DEFLATE application/wasm
</Location>
```

They must be set on the origin - the main entry point as it is displayed in the user's URL bar. When using an `iframe`, the `iframe` must have them **as well as all of its parents up to the origin**, as well as the special `iframe` attribute: `<iframe allow="cross-origin-isolated">`.

# Copyright

ISC License
Expand Down

0 comments on commit 79c7a72

Please sign in to comment.