TCP proxy, highjacks HTTP to allow CORS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A shitty TCP proxy that relays all requests to a local port to a remote server.

portproxy -port 8080 -raddr

Will proxy all TCP requests on localhost:8080 and send them to

Highjacking HTTP

If the http flag is given:

portproxy -http -port 8080 -raddr

The proxy will attempt to detect HTTP requests. If a HTTP request contains an Origin header, the response from the remote server will be modified to include a Access-Control-Allow-Origin: * header.


The sole purpose of this proxy was to bypass a remote API that didn't do CORS.