1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-25 23:52:32 +02:00

updated godoc and renamed cors middleware handler

This commit is contained in:
Gani Georgiev
2024-11-21 22:22:58 +02:00
parent 31d3c27f43
commit 5d8a8dd7d8
3 changed files with 6 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ func Serve(app core.App, config ServeConfig) error {
return err
}
pbRouter.Bind(CORSWithConfig(CORSConfig{
pbRouter.Bind(CORS(CORSConfig{
AllowOrigins: config.AllowedOrigins,
AllowMethods: []string{http.MethodGet, http.MethodHead, http.MethodPut, http.MethodPatch, http.MethodPost, http.MethodDelete},
}))