chore: default configuration
This commit is contained in:
@@ -262,7 +262,14 @@ func initConfig(configFile string) {
|
|||||||
Rewrite: "/",
|
Rewrite: "/",
|
||||||
HealthCheck: "",
|
HealthCheck: "",
|
||||||
Blocklist: []string{},
|
Blocklist: []string{},
|
||||||
Cors: Cors{},
|
Cors: Cors{
|
||||||
|
Origins: []string{"http://localhost:3000", "https://dev.example.com"},
|
||||||
|
Headers: map[string]string{
|
||||||
|
"Access-Control-Allow-Headers": "Origin, Authorization",
|
||||||
|
"Access-Control-Allow-Credentials": "true",
|
||||||
|
"Access-Control-Max-Age": "1728000",
|
||||||
|
},
|
||||||
|
},
|
||||||
Middlewares: []RouteMiddleware{
|
Middlewares: []RouteMiddleware{
|
||||||
{
|
{
|
||||||
Path: "/user",
|
Path: "/user",
|
||||||
|
|||||||
Reference in New Issue
Block a user