Skip to content

Commit

Permalink
bearer: add application/x-javascript to the list of bad ones (#68)
Browse files Browse the repository at this point in the history
Some browsers use it for whatever reason.
  • Loading branch information
roman-khimov authored Feb 10, 2025
2 parents 678efff + a1f9626 commit f811e77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bearer/bearer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f811e77

Please sign in to comment.