Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions core/services/gateway/network/httpserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ func (s *httpServer) isAllowedOrigin(origin string) bool {
return false
}
for _, allowed := range s.config.CORSAllowedOrigins {
// probably better to do this once when server starts and store it in a map
// this is an easier solution so we don't have to apply more changes to the code
// just need to be careful when specifying allowed origins in the config file
allowedScheme, allowedHost, allowedPort, err := s.splitURL(allowed)
if err != nil {
s.lggr.Debug("error parsing allowed origin URL", err)
Expand Down
Loading