v0.14.0 web replay UI, My games, CLI replay
This commit is contained in:
1 parent
87dcb3e550
commit
a999177f0c
37 files changed
+4058
-1803
No files matched your search
@@ -93,10 +93,14 @@ func NewFiberApp(proc *processor.Processor, svc *service.Service, opts Options)
|
||||
TimeZone: "UTC",
|
||||
}))
|
||||
}
|
||||
// ETag and Content-Disposition are not CORS-safelisted: a browser client
|
||||
// on another origin (the embedded web server's port, in development) can
|
||||
// only revalidate histories and name PGN downloads when they are exposed.
|
||||
app.Use(cors.New(cors.Config{
|
||||
AllowOrigins: "*",
|
||||
AllowMethods: "GET,POST,PUT,DELETE,OPTIONS",
|
||||
AllowHeaders: "Origin,Content-Type,Accept,Authorization",
|
||||
AllowOrigins: "*",
|
||||
AllowMethods: "GET,POST,PUT,DELETE,OPTIONS",
|
||||
AllowHeaders: "Origin,Content-Type,Accept,Authorization,If-None-Match",
|
||||
ExposeHeaders: "ETag,Content-Disposition",
|
||||
}))
|
||||
|
||||
// Health check (no rate limit)
|
||||
|
||||
Reference in new issue
Block a user