From a1f962697952425eee57d7b323a45d4bfb80b738 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 5 Feb 2025 12:45:15 +0300 Subject: [PATCH] bearer: add application/x-javascript to the list of bad ones Some browsers use it for whatever reason. Signed-off-by: Roman Khimov --- bearer/bearer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bearer/bearer.go b/bearer/bearer.go index ae0fa32..b1b223b 100644 --- a/bearer/bearer.go +++ b/bearer/bearer.go @@ -54,6 +54,7 @@ func (b *Generator) createRecords(hashedEmail string, currentEpoch uint64, msPer rec := eacl.CreateRecord(eacl.ActionAllow, eacl.OperationPut) rec.AddObjectAttributeFilter(eacl.MatchStringEqual, b.config.EmailAttr, hashedEmail) rec.AddFilter(eacl.HeaderFromObject, eacl.MatchStringNotEqual, object.AttributeContentType, "application/javascript") + rec.AddFilter(eacl.HeaderFromObject, eacl.MatchStringNotEqual, object.AttributeContentType, "application/x-javascript") rec.AddFilter(eacl.HeaderFromObject, eacl.MatchStringNotEqual, object.AttributeContentType, "text/javascript") rec.AddFilter(eacl.HeaderFromObject, eacl.MatchStringNotEqual, object.AttributeContentType, "application/xhtml+xml") rec.AddFilter(eacl.HeaderFromObject, eacl.MatchStringNotEqual, object.AttributeContentType, "text/html")