mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-23 03:31:54 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d418bd2661 |
@@ -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