fix: desativa SanitizeMiddleware para evitar corrupção de encoding e erros de JSON
This commit is contained in:
parent
c7e6301661
commit
e182d53eca
1 changed files with 1 additions and 1 deletions
|
|
@ -393,7 +393,7 @@ func NewRouter() http.Handler {
|
|||
// Order matters: outer middleware
|
||||
var handler http.Handler = mux
|
||||
handler = middleware.CORSMiddleware(handler)
|
||||
handler = legacyMiddleware.SanitizeMiddleware(handler) // Sanitize XSS from JSON bodies
|
||||
// handler = legacyMiddleware.SanitizeMiddleware(handler) // DISABLED: Corrupting accents and JSON bodies
|
||||
handler = legacyMiddleware.RateLimitMiddleware(100, time.Minute)(handler) // 100 req/min per IP
|
||||
handler = legacyMiddleware.SecurityHeadersMiddleware(handler)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue