Private
Public Access
1
0

More CORS headers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-07-15 22:35:41 -07:00
parent b10134b3da
commit 80ef36ae1c

View File

@@ -79,7 +79,12 @@ func (srv *Server) Run() error {
e.Use(middleware.Logger()) e.Use(middleware.Logger())
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{ e.Use(middleware.CORSWithConfig(middleware.CORSConfig{
AllowOrigins: []string{"http://localhost", "http://localhost:5173", "https://www.ntppool.org"}, AllowOrigins: []string{
"http://localhost", "http://localhost:5173", "http://localhost:8080",
"https://www.ntppool.org", "https://*.ntppool.org",
"https://web.beta.grundclock.com", "https://manage.beta.grundclock.com",
"https:/*.askdev.grundclock.com",
},
AllowHeaders: []string{echo.HeaderOrigin, echo.HeaderContentType, echo.HeaderAccept}, AllowHeaders: []string{echo.HeaderOrigin, echo.HeaderContentType, echo.HeaderAccept},
})) }))