mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-08 21:57:58 -05:00
fix cors origins
This commit is contained in:
parent
5545c1d9ce
commit
8a630d368f
@ -72,7 +72,7 @@ func (s *Server) SetupMiddleware() {
|
|||||||
s.Router.Use(crs)
|
s.Router.Use(crs)
|
||||||
} else {
|
} else {
|
||||||
crs := cors.New(cors.Options{
|
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://www.kycnot.me"}, // allows everything, use that to change the hosts.
|
||||||
AllowCredentials: true,
|
AllowCredentials: true,
|
||||||
})
|
})
|
||||||
s.Router.Use(crs)
|
s.Router.Use(crs)
|
||||||
|
Loading…
Reference in New Issue
Block a user