Skip to content

Commit

Permalink
Merge pull request #45 from NCATS-Gamma/add-origins
Browse files Browse the repository at this point in the history
Added more origins to the CORS headers
  • Loading branch information
alongreyber authored Oct 23, 2020
2 parents f25d1a7 + 6a4cca7 commit f526616
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ openapi: 3.0.3
info:
title: Robokache
description: Large object document store for ROBOKOP
version: 4.1.1
version: 4.1.2
contact:
email: [email protected]
license:
Expand Down
3 changes: 2 additions & 1 deletion internal/robokache/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ func SetupRouter() *gin.Engine {
r := gin.Default()

corsConfig := cors.DefaultConfig()
corsConfig.AllowOrigins = []string{"http://lvh.me", "http://lvh.me:8080", "https://robokop.renci.org"}
corsConfig.AllowOrigins = []string{"http://lvh.me", "http://localhost",
"https://robokop.renci.org", "http://robokop.renci.org:7080"}
corsConfig.AllowCredentials = true
corsConfig.AllowHeaders = []string{"Authorization", "Content-Type", "Accept"}

Expand Down

0 comments on commit f526616

Please sign in to comment.