mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-07-12 01:29:32 -04:00
tem cors fix
This commit is contained in:
parent
fd58ec4e6e
commit
19be5705f7
1 changed files with 1 additions and 1 deletions
|
@ -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://*.kycnot.me"}, // allows everything, use that to change the hosts.
|
AllowedOrigins: []string{"*"}, // allows everything, use that to change the hosts.
|
||||||
AllowCredentials: true,
|
AllowCredentials: true,
|
||||||
})
|
})
|
||||||
s.Router.Use(crs)
|
s.Router.Use(crs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue