Skip to content

Commit

Permalink
fix(api): add default allowed attributes to the config
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyNeet committed Jul 21, 2024
1 parent f65ddd2 commit a459dc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/api/src/app/shared/sanitization/sanitization-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ export const sanitizationConfig = {
["img"],
allowedElements
),
allowedAttributes: { "*": allowedAttributes },
allowedAttributes: {
...sanitizeHtml.defaults.allowedAttributes,
"*": allowedAttributes,
},
allowedSchemes: ["data"],
};

0 comments on commit a459dc7

Please sign in to comment.