mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
fix(control): cors failed
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user