Skip to content

Commit f99d309

Browse files
committed
chore: expose Druid-Version cors header
1 parent a0f7de3 commit f99d309

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

cmd/server/web/server.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ func NewServer(
6767
) *Server {
6868
server := &Server{
6969
corsMiddleware: cors.New(cors.Config{
70-
AllowOrigins: "*",
71-
AllowHeaders: "Origin, Content-Type, Accept, Authorization, X-DRUID-USER, Depth, Overwrite, Destination, If, Lock-Token, Timeout, DAV",
72-
AllowMethods: "GET,POST,PUT,DELETE,OPTIONS,PATCH,PROPFIND,MKCOL,COPY,MOVE",
70+
AllowOrigins: "*",
71+
AllowHeaders: "Origin, Content-Type, Accept, Authorization, X-DRUID-USER, Depth, Overwrite, Destination, If, Lock-Token, Timeout, DAV",
72+
AllowMethods: "GET,POST,PUT,DELETE,OPTIONS,PATCH,PROPFIND,MKCOL,COPY,MOVE",
73+
ExposeHeaders: "Druid-Version",
7374
}),
7475
injectUserMiddleware: middlewares.NewUserInjector(),
7576
headerMiddleware: middlewares.NewHeaderMiddleware(),

0 commit comments

Comments
 (0)