Skip to content

tranngoclam/go-cors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing CORS with gRPC Gateway

  1. Start the gRPC Gateway
go run cmd/gateway/main.go
  1. Go to google.com and execute request from browser console
fetch(
  'http://localhost:8081',
  {
    method: 'GET',
    headers: { 'Content-Type': 'application/json' }
  }
).then(resp => resp.text()).then(console.log)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages