Skip to content

Commit

Permalink
cors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeemzo committed Aug 13, 2019
1 parent 0e1b308 commit 2db0a16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ func main() {
// getEnvironment()

port := getPort()
headersOk := handlers.AllowedHeaders([]string{"Content-Type"})
originsOk := handlers.AllowedOrigins([]string{"*"})
headersOk := handlers.AllowedHeaders([]string{"Content-Type","Access-Control-Allow-Origin"})
originsOk := handlers.AllowedOrigins([]string{"https://jigsaw-io.firebaseapp.com","http://localhost:3000","https://jigsaw.cf"})
methodsOk := handlers.AllowedMethods([]string{"GET", "HEAD", "POST", "PUT", "OPTIONS"})


router := routes.NewRouter()
fmt.Println("Jigsaw Gateway Started @port " + port)
Expand Down

0 comments on commit 2db0a16

Please sign in to comment.