Skip to content

goware/corsanywhere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Install:

go get -u github.com/goware/corsanywhere/cmd/corsanywhere

Terminal:

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

About

cors-anywhere proxy server written in Go

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages