Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Commit c7ce6ff

Browse files
committed
feat: Add additional allowed origin for CORS in main.go
1 parent 49dd609 commit c7ce6ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/gateway/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func main() {
204204
router.Use(middleware.Recoverer)
205205

206206
router.Use(cors.New(cors.Options{
207-
AllowedOrigins: []string{"http://localhost:3000"},
207+
AllowedOrigins: []string{"http://localhost:3000", "https://techtorque.vercel.app"},
208208
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"},
209209
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
210210
ExposedHeaders: []string{"Link"},

0 commit comments

Comments
 (0)