Skip to content

Need changes due to CORS blocked #5

@PatrickChoDev

Description

@PatrickChoDev

app.Use(cors.New(cors.Config{
AllowOrigins: "http://localhost:3000", // Allowed origin
AllowMethods: "GET,POST,PUT,PATCH,DELETE,OPTIONS", // Allow all necessary HTTP methods
AllowHeaders: "Origin, Content-Type, Accept, Authorization", // Include Authorization and other headers
AllowCredentials: true, // Allow credentials to be included
}))

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions