mirror of
https://github.com/owncloud/ocis
synced 2026-04-27 10:07:30 +02:00
Fix CORS issues
This commit is contained in:
@@ -32,7 +32,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", "X-Request-Id"},
|
||||
AllowedHeaders: []string{"Authorization", "Origin", "Content-Type", "Accept", "X-Requested-With", "X-Request-Id", "Cache-Control"},
|
||||
AllowCredentials: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user