wasmproxy

module
v0.0.0-...-46eeeda Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2022 License: MIT

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

Path Synopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL