mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-11-18 18:18:33 +01:00
perf(blossom): set Access-Control-Max-Age to 24 h
This commit is contained in:
@@ -45,6 +45,7 @@ func New(rl *khatru.Relay, serviceURL string) *BlossomServer {
|
||||
AllowedOrigins: []string{"*"},
|
||||
AllowedMethods: []string{"GET", "PUT", "DELETE"},
|
||||
AllowedHeaders: []string{"Authorization", "*"},
|
||||
MaxAge: 86400,
|
||||
})
|
||||
|
||||
wrappedBlossomApi := bud01CorsMux.Handler(blossomApi)
|
||||
|
||||
Reference in New Issue
Block a user