Skip to content

Commit

Permalink
feat: Add Authorization header to allowed cors headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Henning authored and andy89923 committed Jul 5, 2024
1 parent 8e856ed commit ce05a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/webui_service/webui_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (a *WebuiApp) Start(tlsKeyLogPath string) {
AllowMethods: []string{"GET", "POST", "OPTIONS", "PUT", "PATCH", "DELETE"},
AllowHeaders: []string{
"Origin", "Content-Length", "Content-Type", "User-Agent",
"Referrer", "Host", "Token", "X-Requested-With",
"Referrer", "Host", "Authorization", "Token", "X-Requested-With",
},
ExposeHeaders: []string{"Content-Length"},
AllowCredentials: true,
Expand Down

0 comments on commit ce05a80

Please sign in to comment.