kopia lustrzana https://github.com/bugout-dev/moonstream
commit
d571ca24c7
|
@ -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