mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 17:07:08 +00:00
fix(control): cors failed
This commit is contained in:
@@ -37,6 +37,9 @@ func main() {
|
||||
|
||||
e := echo.New()
|
||||
|
||||
// Allow requests from everywhere
|
||||
e.Use(middleware.CORS())
|
||||
|
||||
// Serve the embedded SvelteKit frontend
|
||||
e.Use(middleware.StaticWithConfig(middleware.StaticConfig{
|
||||
Filesystem: http.FS(frontend.BuildDirFS),
|
||||
|
||||
Reference in New Issue
Block a user