mirror of
https://github.com/owncloud/ocis
synced 2026-04-26 17:55:24 +02:00
fix preflight requests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
committed by
Michael Barz
parent
4080b85033
commit
0edb2b9c5b
@@ -33,7 +33,7 @@ func DefaultConfig() *config.Config {
|
||||
CORS: config.CORS{
|
||||
AllowedOrigins: []string{"*"},
|
||||
AllowedMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
|
||||
AllowedHeaders: []string{"Authorization", "Origin", "Content-Type", "Accept", "X-Requested-With", "Purge", "Restore"},
|
||||
AllowedHeaders: []string{"Authorization", "Origin", "Content-Type", "Accept", "X-Requested-With", "X-Request-Id", "Purge", "Restore"},
|
||||
AllowCredentials: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user