Skip to content

Commit

Permalink
Add new allow headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Rorical committed Oct 7, 2023
1 parent ebf4b82 commit 12fb665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/responser/responser.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ func NewResponser(addr string, dbops *operations.DatabaseOperations, mq models.M
app := gin.New()
app.Use(cors.New(cors.Config{
AllowOrigins: []string{"https://pixivel.moe", "https://beta.pixivel.moe", "https://pixivel.art"},
AllowMethods: []string{"GET", "POST"},
AllowHeaders: []string{"Origin"},
AllowMethods: []string{"GET", "POST", "OPTIONS"},
AllowHeaders: []string{"Origin", "Content-Type", "User-Agent"},
ExposeHeaders: []string{"Content-Length"},
AllowCredentials: true,
MaxAge: 12 * time.Hour,
Expand Down

0 comments on commit 12fb665

Please sign in to comment.