remove web worker requirement

This commit is contained in:
Toshit Chawda 2024-07-27 12:06:58 -07:00
parent cf0b259eef
commit e2b44da43a
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D

View file

@ -2,7 +2,7 @@
Epoxy is an encrypted proxy for browser javascript. It allows you to make requests that bypass CORS without compromising security, by running SSL/TLS inside webassembly. Epoxy is an encrypted proxy for browser javascript. It allows you to make requests that bypass CORS without compromising security, by running SSL/TLS inside webassembly.
## Using the client ## Using the client
Epoxy must be run from within a web worker and must be served with the [security headers needed for `SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements). Here is a simple usage example: Epoxy must be served with the [security headers needed for `SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements). Here is a simple usage example:
```javascript ```javascript
import epoxy from "./epoxy-module-bundled.js"; import epoxy from "./epoxy-module-bundled.js";
import ROOTS from "./pkg/certs-module.js"; import ROOTS from "./pkg/certs-module.js";