kopia lustrzana https://github.com/bugout-dev/moonstream
Fix nb cors log
rodzic
4bda0d01cc
commit
6d0046961e
|
@ -378,8 +378,6 @@ func corsMiddleware(next http.Handler) http.Handler {
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Println(allowedOrigin, CORS_WHITELIST_MAP)
|
||||
|
||||
if allowedOrigin != "" {
|
||||
w.Header().Set("Access-Control-Allow-Origin", allowedOrigin)
|
||||
w.Header().Set("Access-Control-Allow-Methods", "GET,POST,OPTIONS")
|
||||
|
|
Ładowanie…
Reference in New Issue