Skip to content

Commit

Permalink
🔐 CORS에 baggage를 허용 목록에 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
aroxu authored Oct 15, 2023
1 parent fb1e0ba commit bdc15cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ func Cors() gin.HandlerFunc {
return func(c *gin.Context) {
c.Writer.Header().Set("Access-Control-Allow-Origin", "*")
c.Writer.Header().Set("Access-Control-Allow-Credentials", "true")
c.Writer.Header().Set("Access-Control-Allow-Headers", "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With")
c.Writer.Header().Set("Access-Control-Allow-Headers", "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, baggage, origin, Cache-Control, X-Requested-With")
c.Writer.Header().Set("Access-Control-Allow-Methods", "GET, POST, PUT, PATCH, DELETE")
c.Writer.Header().Set("Access-Control-Request-Method", "*")

Expand Down

0 comments on commit bdc15cb

Please sign in to comment.