mirror of
https://github.com/usememos/memos.git
synced 2024-12-19 00:51:30 +03:00
chore: use cors
middleware
This commit is contained in:
parent
47ffd99c3b
commit
99df4acfe9
@ -32,6 +32,8 @@ func NewServer(profile *profile.Profile) *Server {
|
||||
Format: "${method} ${uri} ${status}\n",
|
||||
}))
|
||||
|
||||
e.Use(middleware.CORS())
|
||||
|
||||
e.Use(middleware.TimeoutWithConfig(middleware.TimeoutConfig{
|
||||
Skipper: middleware.DefaultSkipper,
|
||||
ErrorMessage: "Request timeout",
|
||||
|
Loading…
Reference in New Issue
Block a user