mirror of
https://github.com/owncloud/ocis
synced 2026-04-26 01:35:25 +02:00
add missing cors config
This commit is contained in:
@@ -30,6 +30,12 @@ func DefaultConfig() *config.Config {
|
||||
Addr: "127.0.0.1:9120",
|
||||
Namespace: "com.owncloud.graph",
|
||||
Root: "/graph",
|
||||
CORS: config.CORS{
|
||||
AllowedOrigins: []string{"*"},
|
||||
AllowedMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
|
||||
AllowedHeaders: []string{"Authorization", "Origin", "Content-Type", "Accept", "X-Requested-With"},
|
||||
AllowCredentials: true,
|
||||
},
|
||||
},
|
||||
Service: config.Service{
|
||||
Name: "graph",
|
||||
|
||||
Reference in New Issue
Block a user