Skip to content

Commit

Permalink
#add: change cros
Browse files Browse the repository at this point in the history
  • Loading branch information
tdatIT committed Jun 23, 2024
1 parent 1ebc14d commit 71be4b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ func (d deliveryServiceGRPCClientImpl) CalculateShippingCost(ctx context.Context
log.Errorf("request to gRPC is failed cause %v", err)
return nil, err
}

return out, nil
}
6 changes: 3 additions & 3 deletions internal/server.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// this code to enable wire inject
//go:build wireinject
// +build wireinject

// this code to enable wire inject
package server

import (
Expand Down Expand Up @@ -100,8 +100,8 @@ func NewServer(
app.Use(recoverFiber.New(recoverConfig))

app.Use(cors.New(cors.Config{
AllowOrigins: "http://127.0.0.1:5500, http://127.0.0.1:5173",
AllowHeaders: "Origin, X-Requested-With, Content-Type, Accept, Authorization",
AllowOrigins: "http://127.0.0.1:5500, http://127.0.0.1:5173, http://localhost:5500, http://localhost:5173",
AllowHeaders: "*",
AllowMethods: "GET,HEAD,OPTIONS,POST,PUT",
}))

Expand Down
4 changes: 2 additions & 2 deletions internal/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 71be4b0

Please sign in to comment.