httpd service: add CORS support

This commit is contained in:
Nicola Murino
2021-11-13 23:14:50 +01:00
parent ee5c5e033d
commit 0833b4698e
10 changed files with 78 additions and 18 deletions

View File

@@ -347,7 +347,7 @@ func TestMain(m *testing.M) {
ClientAuthType: 2,
},
}
webDavConf.Cors = webdavd.Cors{
webDavConf.Cors = webdavd.CorsConfig{
Enabled: true,
AllowedOrigins: []string{"*"},
AllowedMethods: []string{