Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 791 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 791 Bytes

cors-anywhere in Go

A cors-anywhere proxy written in Go which can be used from CLI or as a library and mounted in your servers directly.

Inspired by https://github.com/Redocly/cors-anywhere

Usage

$ go run github.com/goware/corsanywhere@latest -h

Usage (another way, install then use)

Install:

$ go install github.com/goware/corsanywhere@latest
$ corsanywhere -port=8080

You can now send CORS-enabled requests to http://localhost:8080/.

For example, say you have a CORS-enabled API at https://api.mydomain.com/accounts, you can send the same request, but put http://localhost:8080/ in front of the url, so you'd make a request to: http://localhost:8080/https://api.mydomain.com/accounts

LICENSE

MIT