|
|
|
|
@ -32,7 +32,7 @@ func main() {
|
|
|
|
|
AllowedOrigins: []string{"https://*", "http://*"},
|
|
|
|
|
// AllowOriginFunc: func(r *http.Request, origin string) bool { return true },
|
|
|
|
|
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
|
|
|
|
|
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
|
|
|
|
|
AllowedHeaders: []string{"*"},
|
|
|
|
|
ExposedHeaders: []string{"Link"},
|
|
|
|
|
AllowCredentials: false,
|
|
|
|
|
MaxAge: 300, // Maximum value not ignored by any of major browsers
|
|
|
|
|
|