module
Version:
v0.0.0-...-46eeeda
Opens a new window with list of versions in this module.
Published: Jun 11, 2022
License: MIT
Opens a new window with license information.
README
¶
wasmproxy
This is a simple prototype of running a Go server as an in-browser proxy using wasm + service workers.
Unfortunately(?) it doesn't allow for rewriting CORS requests as requests made through wasm still apply fetch
CORS restrictions.
Building
cd proxy
GOOS=js GOARCH=wasm go build -o ../example/public/server/proxy.wasm
Running
cd example
go run example.go
Directories
¶
|
|
Command wasmproxy provides a proxy that rewrites and forwards requests by rewriting CORS headers.
|
Command wasmproxy provides a proxy that rewrites and forwards requests by rewriting CORS headers. |
|
|
Click to show internal directories.
Click to hide internal directories.