fix(control): cors failed

This commit is contained in:
2026-01-10 00:35:25 +01:00
parent 0d6d3a6012
commit e27cf170ef
+3
View File
@@ -37,6 +37,9 @@ func main() {
e := echo.New() e := echo.New()
// Allow requests from everywhere
e.Use(middleware.CORS())
// Serve the embedded SvelteKit frontend // Serve the embedded SvelteKit frontend
e.Use(middleware.StaticWithConfig(middleware.StaticConfig{ e.Use(middleware.StaticWithConfig(middleware.StaticConfig{
Filesystem: http.FS(frontend.BuildDirFS), Filesystem: http.FS(frontend.BuildDirFS),