1
0
mirror of https://codeberg.org/pluja/kycnot.me synced 2025-04-11 18:39:51 -04:00

cors fixing

This commit is contained in:
pluja 2024-02-25 18:10:34 +01:00
parent 8a630d368f
commit c35b9ca457

@ -72,7 +72,7 @@ func (s *Server) SetupMiddleware() {
s.Router.Use(crs)
} else {
crs := cors.New(cors.Options{
AllowedOrigins: []string{"https://kycnot.me", "https://www.kycnot.me"}, // allows everything, use that to change the hosts.
AllowedOrigins: []string{"https://kycnot.me", "https://*.kycnot.me"}, // allows everything, use that to change the hosts.
AllowCredentials: true,
})
s.Router.Use(crs)