mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-25 20:51:53 +08:00
fix: Pass ExposedHeaders to cors.New
This commit is contained in:
committed by
Henrique Dias
parent
d500716f29
commit
3ea976b2e3
@@ -63,6 +63,7 @@ func NewHandler(c *Config) (http.Handler, error) {
|
|||||||
AllowedOrigins: c.CORS.AllowedHosts,
|
AllowedOrigins: c.CORS.AllowedHosts,
|
||||||
AllowedMethods: c.CORS.AllowedMethods,
|
AllowedMethods: c.CORS.AllowedMethods,
|
||||||
AllowedHeaders: c.CORS.AllowedHeaders,
|
AllowedHeaders: c.CORS.AllowedHeaders,
|
||||||
|
ExposedHeaders: c.CORS.ExposedHeaders,
|
||||||
OptionsPassthrough: false,
|
OptionsPassthrough: false,
|
||||||
}).Handler(h), nil
|
}).Handler(h), nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user