Skip to content

Commit

Permalink
DEV UPDATE:Fix middleware cors,delelte header Access-Control-Allow-Cr…
Browse files Browse the repository at this point in the history
…edentials
  • Loading branch information
misakajimmy committed Jan 4, 2023
1 parent 7eebf86 commit 622d117
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/app/api/middlewares/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ func Cors() gin.HandlerFunc {
c.Header("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE, UPDATE")
c.Header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization")
c.Header("Access-Control-Expose-Headers", "Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Cache-Control, Content-Language, Content-Type")
c.Header("Access-Control-Allow-Credentials", "true")
}
if method == "OPTIONS" {
c.AbortWithStatus(http.StatusNoContent)
Expand Down

0 comments on commit 622d117

Please sign in to comment.