Allows images in Firewall

This commit is contained in:
Eduard Urbach 2017-11-11 18:14:14 +01:00
parent 2db3214766
commit 644d112474

View File

@ -51,7 +51,7 @@ func Firewall() aero.Middleware {
for _, uri := range stats.Requests { for _, uri := range stats.Requests {
// Allow request // Allow request
if strings.Contains(uri, "/_/") || strings.Contains(uri, "/api/") || strings.Contains(uri, "/scripts") || strings.Contains(uri, "/service-worker") || strings.Contains(uri, "/favicon.ico") || strings.Contains(uri, "/extension/embed") { if strings.Contains(uri, "/_/") || strings.Contains(uri, "/api/") || strings.Contains(uri, "/scripts") || strings.Contains(uri, "/service-worker") || strings.Contains(uri, "/images/") || strings.Contains(uri, "/favicon.ico") || strings.Contains(uri, "/extension/embed") {
next() next()
return return
} }