Skip to content

Commit

Permalink
feat: add session_id to allowed CORS headers
Browse files Browse the repository at this point in the history
  • Loading branch information
aliraza556 committed Dec 27, 2024
1 parent 65477ba commit a972076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func initChi() *chi.Mux {
cors := cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token", "X-User", "authorization", "x-jwt", "Referer", "User-Agent"},
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token", "X-User", "authorization", "x-jwt", "Referer", "User-Agent", "session_id"},
AllowCredentials: true,
MaxAge: 300,
})
Expand Down

0 comments on commit a972076

Please sign in to comment.