Skip to content

Commit

Permalink
fix: allow cors in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
significance committed Apr 20, 2022
1 parent 3d55844 commit 6d15960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/node/devnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func NewDevBee(logger logging.Logger, o *DevOptions) (b *DevBee, err error) {
}),
)

debugAPIService = debugapi.New(mockKey.PublicKey, mockKey.PublicKey, overlayEthAddress, logger, tracer, nil, big.NewInt(0), mockTransaction, o.Restricted, authenticator, false, debugapi.DevMode)
debugAPIService = debugapi.New(mockKey.PublicKey, mockKey.PublicKey, overlayEthAddress, logger, tracer, o.CORSAllowedOrigins, big.NewInt(0), mockTransaction, o.Restricted, authenticator, false, debugapi.DevMode)

debugAPIServer := &http.Server{
IdleTimeout: 30 * time.Second,
Expand Down

0 comments on commit 6d15960

Please sign in to comment.